Expand description
Terminal styling utilities for consistent CLI output.
Respects NO_COLOR environment variable and terminal capabilities.
Modules§
Functions§
- bold
- Bold: headers, key values.
- boxed_
message - Render a box-framed message with word wrapping.
- colors_
enabled - Check if colors should be used.
- commit_
type - Commit type styling (blue + bold).
- dim
- Dim: less important details, file paths (dimmed).
- error
- Error: failures, hard errors (red + bold).
- info
- Info: informational messages (cyan).
- model
- Model name styling (magenta).
- print_
info - Print an info message that clears any spinner line first.
- scope
- Scope styling (cyan).
- section_
header - Section header with decorative lines.
- separator
- Horizontal separator line.
- success
- Success: checkmarks, completed actions (green + bold).
- term_
width - Get terminal width, capped at 120 columns.
- warn
- Print warning message, clearing any active spinner line first.
- warning
- Warning: soft limit violations, non-fatal issues (yellow).
- with_
spinner - Run a function with a spinner animation. Falls back to static text if not a TTY.
- with_
spinner_ result - Run a function with a spinner, but show error on failure.