Skip to main content

Module cli

Module cli 

Source

Structs§

Cli

Enums§

Commands
DaemonCommand
GitHost
Which Git hosting provider’s CLI to drive.
OutputFormat
PairCommand
PluginCommand
PrCommand
QaCommand

Functions§

handle_command
Handle CLI subcommands Returns Ok(true) if the command was handled and we should exit Returns Ok(false) if we should continue to the main application
list_models
List available models across all backends (honors user config). Read-only: a dead local server is reported, never resurrected — a cloud-model user who stopped Ollama on purpose must be able to enumerate without a surprise VRAM grab.
resolve_run_prompt
Reject an empty or whitespace-only run prompt at parse time, so Resolve the effective run prompt from the CLI arg and any piped stdin. stdin is Some(text) when stdin was piped (non-TTY), else None. Pure so it can be unit-tested; the caller does the terminal check + stdin read.
show_version
Show version information