Skip to main content

Module output

Module output 

Source
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§

ArgumentHelp
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
CommandHelp
Help information for a single command
CommandResult
Result of a CLI command execution
CommandSummary
Summary of a command for listing
ExitCodeHelp
Exit code documentation
OutputFormatter
Formats command output in different modes
OutputSchema
Output schema for a command (JSON Schema format)

Functions§

get_exit_codes
Get the standard exit codes used by the CLI