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ยง

CliContext
Context for command execution - holds formatter and logging options
CommandResult
Result of a CLI command execution
OutputFormatter
Formats command output in different modes