Expand description
Shared output formatting for CLI commands.
Supports two modes: human-readable tables and JSON.
Respects NO_COLOR env var for colored output.
Structs§
- Catalog
Entry - Catalog entry — name + description for discovery.
- List
Entry - Entry in the list command output.
Functions§
- print_
catalog - Print catalog view (name: description, grouped by kind).
- print_
doctor - Print doctor report.
- print_
error - Print an error message (red).
- print_
info - Print an info message.
- print_
json - Print simple JSON value.
- print_
list - Print a list of items as a table or JSON.
- print_
success - Print a simple success message.
- print_
sync_ report - Print sync report as human-readable text or JSON.
- print_
warn - Print a warning message (yellow).
- sync_
report_ json - use_
color - Check if colored output should be used.