Expand description
Minimal terminal-output helpers for the podbox CLI.
Contract (REVIEW.md “Output and error contract”):
- Read commands print data on stdout; diagnostics always go to stderr.
step/okare human progress lines: suppressed by--quiet.warn,hint, anderrorare always shown.- Colors use
owo-colors+supports-color, which honorNO_COLOR.
This module is intentionally not a framework: plain functions, no macros,
no global logger. Verbosity beyond progress lines goes through tracing.
Functions§
- error
- Print the top-level error line to stderr (never suppressed).
- hint
- Print an actionable hint block to stderr (never suppressed).
- is_
quiet - is_
verbose - True when any
--verboselevel is active. Long-running child processes (podman build/pull) stream their output to the terminal in this mode instead of being captured to the build log. - ok
- Print a success line (“✔ msg”) to stderr unless quiet.
- set_
quiet - Enable/disable quiet mode (wired to the global
--quietflag). - set_
verbose - Store the
-vcount (0 = info, 1 = debug, 2+ = trace). - step
- Print a progress line (“→ msg”) to stderr unless quiet.
- warn
- Print a warning to stderr (never suppressed).