Skip to main content

Module output

Module output 

Source
Expand description

Output formatting infrastructure for the openlatch CLI.

OutputConfig is the single source of truth for how any command should produce output. It captures format (human vs JSON), verbosity, debug, quiet, and color settings, and provides helper methods that apply the correct output strategy for each case.

§Design rules

  • D-01: print_step emits checkmark-prefixed lines in human mode; silent in JSON mode
  • D-04: print_substep is indented below a parent step (bullet point)
  • CLI-11: Progress spinners write to stderr, not stdout
  • T-02-04: --debug mode never prints tokens or secrets

Structs§

OutputConfig
Resolved output configuration for a CLI invocation.

Enums§

OutputFormat
Output format selection.