Skip to main content

Module output

Module output 

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

CatalogEntry
Catalog entry — name + description for discovery.
ListEntry
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.