Skip to main content

Module cli

Module cli 

Source

EnumsΒ§

BreakKindArg
CliCommand
CliError
Invocation
What main should do with a given argv, decided in one pure place so the table is unit-testable on every OS. The Windows console attach keys off Invocation::produces_console_output.
PauseTarget

FunctionsΒ§

classify
Classify a raw argv into the single action main takes. Mirrors the old inline dispatch exactly: help/log are recognised ahead of the parser, everything else goes through parse_cli, and anything that isn’t a locally-runnable command falls through to launching the tray app.
expand_colour πŸ”’
expect_no_more πŸ”’
help_text
hex_to_rgb_csv πŸ”’
log_path
parse_cli
parse_duration πŸ”’
parse_kind πŸ”’
parse_quick_flags πŸ”’
run_local_ipc
stream_log