Skip to content

Commit

Permalink
Fix SceneCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
mansman12 authored Jan 11, 2025
1 parent 0416e3b commit a694931
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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),
Expand Down Expand Up @@ -156,7 +163,7 @@ pub enum Commands {
command: String,
scene: String,
source: String,
}
},

TriggerHotkey {
name: String,
Expand Down

0 comments on commit a694931

Please sign in to comment.