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
truewhen 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.