Expand description
Output formatting for CLI commands
Supports three output modes:
- JSON: Machine-readable structured output for agents
- Text: Human-readable formatted output
- Quiet: No output (exit code only)
Structs§
- Argument
Help - Help information for a single argument or option
- CliContext
- Context for command execution - holds formatter and logging options
- CliHelp
- Complete CLI help information for AI agents
- Command
Help - Help information for a single command
- Command
Result - Result of a CLI command execution
- Command
Summary - Summary of a command for listing
- Exit
Code Help - Exit code documentation
- Output
Formatter - Formats command output in different modes
- Output
Schema - Output schema for a command (JSON Schema format)
Functions§
- get_
exit_ codes - Get the standard exit codes used by the CLI