Module style

Module style 

Source
Expand description

Terminal styling utilities for consistent CLI output.

Respects NO_COLOR environment variable and terminal capabilities.

Modules§

box_chars
Box drawing characters.
icons

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.