Skip to main content

Module output

Module output 

Source
Expand description

Output formatting and styling helpers.

Provides colored output, progress indicators, and human-friendly formatting. Respects the NO_COLOR environment variable and TTY detection so that output is always readable when piped, captured, or run in CI.

Structs§

Styled
A thin helper that conditionally applies ANSI escape codes.

Functions§

color_enabled
Returns true when colored output should be used.
format_size
Format a byte count into a human-readable string (e.g., “4.2 MB”).
progress
Print a simple inline progress indicator to stderr.
progress_done
Finish a progress indicator with a newline on stderr.