Skip to main content

Module ui

Module ui 

Source
Expand description

Terminal UI utilities — progress bars, boxed output, and status messages.

All functions in this module write directly to stdout. They are intentionally thin wrappers around colored and indicatif so the rest of the codebase does not need to import those crates directly.

§Future work

  • Respect a global --no-color flag by checking colored::control::SHOULD_COLORIZE.
  • Add a spinner() helper for indeterminate operations.
  • Add a table() helper for structured multi-column output.

Functions§

error
Print a red ✗ <message> error line.
info
Print a cyan ℹ️ <message> info line.
print_box
Print a cyan boxed header with an optional multi-line body.
progress_bar
Create a styled progress bar with len steps and an initial message.
separator
Print a dimmed horizontal rule (60 dashes).
success
Print a green ✓ <message> success line.
warning
Print a yellow ⚠️ <message> warning line.