Expand description
Unified UI module for CLI output
Following rust-cli standards:
- Data → stdout, logs/errors → stderr
- Respects NO_COLOR environment variable
- TTY detection before coloring
- Uses owo-colors for styling
- Uses indicatif for progress bars
Per [[ADR-0004]], this crate re-exports typub-log for convenience and
provides IndicatifReporter implementing ProgressReporter.
Modules§
Macros§
- debug
- Constructs an event at the debug level.
- error
- Constructs an event at the error level.
- info
- Constructs an event at the info level.
- trace
- Constructs an event at the trace level.
- warn
- Constructs an event at the warn level.
Structs§
- FnReporter
- A progress reporter that wraps a closure.
- Indicatif
Reporter - A progress reporter using indicatif progress bars.
- Multi
Progress - Progress tracker for multi-step operations
- Null
Reporter - A progress reporter that discards all reports.
- Table
- Print a simple table (data goes to stdout)
Traits§
- Progress
Reporter - Trait for reporting progress during long-running operations.
Functions§
- debug
- Print a debug message (only in verbose mode, to stderr)
- error
- Print an error message (to stderr)
- header
- Print a header/section title (to stderr)
- info
- Print an info message (to stderr for logging)
- init
- Initialize the CLI logging subscriber.
- is_
verbose - Check if verbose mode is enabled
- item
- Print a sub-item with label and value (to stderr)
- log_
asset_ analysis - Display asset analysis in a formatted table.
- log_
dry_ run - Log dry run
- log_
publish_ start - Log start of publish operation
- log_
publish_ success - Log successful publish
- log_
skip - Log skipped operation
- platform_
status - Print platform status line (to stderr)
- progress_
bar - Create a progress bar for known-length operations
- spinner
- Create a spinner for operations with unknown duration
- spinner_
error - Finish spinner with error
- spinner_
success - Finish spinner with success
- step
- Print a step in a multi-step process (to stderr)
- success
- Print a success message (to stderr for logging)
- warn
- Print a warning message (to stderr)