Skip to main content

Module output

Module output 

Source
Expand description

Output-format selection.

Most CLI subcommands support a human-readable default and a --json escape hatch for scripting. OutputFormat names that choice so commands can branch on it instead of threading a raw bool around.

Enums§

OutputFormat
The two output shapes a CLI subcommand typically supports.

Functions§

render
Render human or json depending on format, returning owned Strings so callers can print, log, or compare either branch uniformly.