Module output

Module output 

Source
Expand description

Output formatting for entity commands.

Supports two modes:

  • Human: Styled terminal output with colored statuses, shortened UUIDs, and section headers. Designed for interactive use.
  • JSON: Pretty-printed JSON for machine consumption and agent piping.

Structsยง

OutputConfig
Output configuration, driven by the --json global flag.

Functionsยง

format_value ๐Ÿ”’
looks_like_uuid ๐Ÿ”’
Quick check if a string looks like a UUID (8-4-4-4-12 hex pattern).
print_human ๐Ÿ”’