Skip to main content

Crate vanta_ui

Crate vanta_ui 

Source
Expand description

vanta-ui — the branded terminal UI for the vanta CLI.

Provides the ASCII wordmark banner, a thin Progress handle over indicatif for download bars and indeterminate spinners, and plain step milestones. Everything is TTY- and NO_COLOR-aware: when stdout is not a terminal or NO_COLOR is set, output degrades to terse, uncolored status lines on stderr with no spinner/bar animation, keeping stdout clean for scripts and shell hooks.

All decorative output (banner, bars, spinners, status lines) is written to stderr; callers keep machine-readable results on stdout themselves.

Structs§

Progress
A handle around an indicatif::ProgressBar for a single operation.

Functions§

banner
Print the branded wordmark banner once, at the top of an interactive top-level command. Shows the teal wordmark, a dim tagline, and the version.
is_rich
Whether decorative UI may animate (bars/spinners) and color may be emitted.
running
Print a branded “running” header (teal ▸ running: <cmd>) before a subprocess inherits the terminal. Always emitted to stderr so the child’s stdout stays clean; uncolored in plain mode.
step
Print a plain milestone line (terse status), prefixed with a teal in rich mode. Always goes to stderr so stdout stays machine-readable.