Skip to main content

Module cli

Module cli 

Source
Expand description

CLI argument parsing with clap

Provides command-line argument parsing for the oxi CLI.

Structs§

CliArgs
Main CLI arguments
InstallArgs
CLI arguments for the main chat command CLI arguments for the install command
ListArgs
CLI arguments for the list command
RemoveArgs
CLI arguments for the remove command
UpdateArgs
CLI arguments for the update command

Enums§

Commands
CLI subcommands
OutputMode
Output mode
ThinkingLevel
Thinking level options

Functions§

detect_print_mode
Detect if we’re running in print mode (non-interactive)
generate_completion
Generate shell completion script
get_version
Get the version string
is_stdin_piped
Check if stdin is piped (for print mode detection)
parse_args
Parse CLI arguments from the command line
parse_args_from
Parse CLI arguments from a specific iterator