Expand description
Command parsing and dispatch for the player UI.
This module is intentionally small and backend-agnostic. The UI can parse
prompt input into a ParsedCommand, then dispatch it into any type that
implements ControlEventHandler.
Structs§
- Command
Spec - Canonical command plus accepted aliases.
- Parsed
Command - A parsed command action plus the remaining prompt arguments.
Enums§
- Command
- All commands currently represented by the UI and prompt parser.
- Parse
Command Error - Errors returned by
parse_command.
Constants§
- COMMAND_
SPECS - Commands and aliases accepted by
parse_command.
Traits§
- Control
Event Handler - Event sink implemented by the UI or a future playback backend.
Functions§
- command_
names - Returns all canonical command names as a slash-separated help string.
- dispatch
- Routes a parsed command to the matching
ControlEventHandlercallback. - parse_
command - Parses prompt text into a command event.