Skip to main content

Module command_parsing

Module command_parsing 

Source

Functionsยง

parse_cli_string ๐Ÿ”’
Parses a raw command string into a structured [CliAction]. See โ€˜../help.txtโ€™ for a list of available commands.
parse_cli_value ๐Ÿ”’
Parses a raw channel value string supporting percentages, hex codes, or raw integers (According to [ChannelValue]).
parse_exit ๐Ÿ”’
Parses arguments to construct an [CliAction::Exit] instance.
parse_get_type ๐Ÿ”’
Parses arguments to construct a [CliAction::FixtureGetType] instance for querying a fixture type.
parse_move_fixture ๐Ÿ”’
Parses arguments to construct a [CliAction::FixtureMove] instance for relocating an existing fixture.
parse_new_fixture ๐Ÿ”’
Parses arguments to construct a [CliAction::FixtureAdd] instance for spawning a new fixture instance.
parse_new_fixture_type ๐Ÿ”’
Parses arguments to construct a [CliAction::FixtureNew] instance for creating a new fixture type.
parse_property_type ๐Ÿ”’
Parses and validates a property type from a string slice, mapping it to a [PropertyType].
parse_remove_fixture ๐Ÿ”’
Parses arguments to construct a [CliAction::FixtureRemove] instance for removing a fixture.
parse_set_value ๐Ÿ”’
Parses arguments to construct a [CliAction::FixtureSet] instance for updating a fixture property.
parse_universe_and_channel ๐Ÿ”’
Parses a universe and channel pair formatted as [universe].[channel] into a tuple.
run_command
Runs a command string by parsing it into a [CliAction] and executing it.