Expand description
CLI command parsing, helpers, and command execution.
Structs§
- Cli
- Top-level CLI parser.
- Global
Flags - Global flags accepted by every command.
Enums§
- Commands
- CLI subcommands — parsing only, no execution logic.
- OnOff
- Play
Mode Arg - Queue
Action - Queue sub-subcommands.
Functions§
- format_
duration_ human - Format a duration string for human-readable output.
- format_
time_ ms - Format milliseconds as M:SS or H:MM:SS.
- parse_
duration - Parse a duration string (e.g. “30m”, “1h”, “90m”) into HH:MM:SS format.
- playback_
icon - Format a playback state as an icon string.
- playback_
label - Format a playback state as a word.
- require_
speaker_ only - Resolve –speaker flag for speaker-only commands (bass, treble, loudness). Rejects –group with a validation error.
- resolve_
group - Resolve –group / –speaker flags to a Group handle.
- resolve_
speaker - Resolve –speaker / –group flags to a Speaker handle.
- run_
command - validate_
seek_ time - Validate a seek time string (H:MM:SS or HH:MM:SS format).