pub enum CliAction {
Help,
FixtureNew {
name: String,
channels: HashMap<PropertyType, ChannelParameter>,
},
FixtureAdd {
name: String,
fixture_type_name: String,
universe: usize,
channel: ChannelIndex,
},
FixtureMove {
fixture_name: String,
new_universe: usize,
new_channel: ChannelIndex,
},
FixtureRemove {
fixture_name: String,
},
FixtureSet {
name: String,
property_type: PropertyType,
value: ChannelValue,
},
FixtureGetType {
fixture_name: String,
},
Exit {
save_changes: Option<bool>,
},
OtherCommands {
command: String,
},
}Expand description
Represents the available command-line interface (CLI) actions that can be dispatched.
Variants§
Help
Displays help information.
FixtureNew
Creates a new custom fixture template type with specific properties.
Fields
channels: HashMap<PropertyType, ChannelParameter>Mapping of property types to their respective channel parameters.
FixtureAdd
Spawns an instance of a fixture into a specific universe and channel.
Fields
channel: ChannelIndexStarting DMX channel index within the universe.
FixtureMove
Relocates an existing fixture instance to a new universe and/or channel.
Fields
new_channel: ChannelIndexNew starting DMX channel index.
FixtureRemove
Removes an existing fixture instance.
FixtureSet
Updates a specific property value of a fixture.
Fields
property_type: PropertyTypeThe property type to update.
value: ChannelValueNew raw channel value to assign.
FixtureGetType
Queries the fixture type name for a given fixture instance.
Exit
Shuts down the application, optionally saving configuration changes.
Behavior based on save_changes:
Some(false)– Shuts down immediately without saving changes.Some(true)– Saves changes and then shuts down.None– Prompts the user interactively to confirm whether to save changes.
Note: This command can only be executed within the kernel console.
Fields
OtherCommands
Fallback for custom or unparsed command strings, mainly used for debug-commands