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.