Skip to main content

Module output

Module output 

Source
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