Skip to main content

Module output

Module output 

Source
Expand description

Shared CLI output formatting with colors, symbols, and structured display.

Structs§

Styled
Colored string builder.

Functions§

color_enabled
Check if color output is enabled.
format_duration
Format a duration in seconds into human-readable (e.g., “2h 14m”).
format_size
Format bytes into human-readable size (e.g., “28.7 MB”).
is_json
Check if –json mode is active.
is_quiet
Check if –quiet mode is active.
is_verbose
Check if –verbose mode is active.
print_check
Print a check result line with symbol and label/value.
print_detail
Print an indented detail/fix line under a check.
print_header
Print a branded header for CLI output.
print_json
Print JSON output to stdout and return.
print_section
Print a section header (e.g., “System”, “Browser”, “Runtime”).
print_status
Print a status summary line at the bottom.
progress_bar
Simple progress bar string.