Expand description
Terminal output formatting with colors
Respects NO_COLOR, CLICOLOR, CLICOLOR_FORCE automatically.
Functions§
- action
- Print completed action (green label)
- detail
- Print indented detail (no color)
- diff_
add - Print diff addition (green +)
- diff_
remove - Print diff removal (red -)
- error
- Print error (red bold “error:” prefix) to stderr
- failure
- Print failure status (red X, indented)
- header
- Print section header (cyan bold)
- info
- Print plain output (no color, for data/export statements)
- prompt
- Print prompt without newline (cyan)
- success
- Print success status (green checkmark)
- success_
detail - Print success status indented (green checkmark with leading spaces)
- warning
- Print warning (yellow “Warning:” prefix) to stderr