Expand description
CLI argument parsing with clap
Provides command-line argument parsing for the oxi CLI.
Structs§
- CliArgs
- Main CLI arguments
- Install
Args - CLI arguments for the main chat command CLI arguments for the install command
- List
Args - CLI arguments for the list command
- Remove
Args - CLI arguments for the remove command
- Update
Args - CLI arguments for the update command
Enums§
- Commands
- CLI subcommands
- Output
Mode - Output mode
- Thinking
Level - 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