From a694931df7e57d4e1e6c12f6d604deb3b11a6915 Mon Sep 17 00:00:00 2001 From: mansman12 <95740406+mansman12@users.noreply.github.com> Date: Sat, 11 Jan 2025 05:11:04 +0000 Subject: [PATCH] Fix SceneCollection --- src/command.rs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/command.rs b/src/command.rs index e640212..f0b3f68 100644 --- a/src/command.rs +++ b/src/command.rs @@ -97,6 +97,14 @@ pub enum Scene { } } +#[derive(Subcommand, Clone, Debug)] +pub enum SceneCollection { + Current, + Switch{ + scene_collection_name: String, + } +} + #[derive(Parser)] #[clap(author, version, about, long_about = None)] pub struct Cli { @@ -113,10 +121,9 @@ pub enum Commands { Info, #[clap(subcommand)] Scene (Scene), - SceneCollection { - switch_placeholder: String, // NOTE: just for args positioning - scene_collection_name: String, - }, + + #[clap(subcommand)] + SceneCollection (SceneCollection), #[clap(subcommand)] Replay(Replay), @@ -156,7 +163,7 @@ pub enum Commands { command: String, scene: String, source: String, - } + }, TriggerHotkey { name: String,