Skip to main content

Module status

Module status 

Source
Expand description

One-off status feedback lines for guided, multi-step CLI flows.

Where crate::progress animates ongoing work and crate::prompt reads input, this renders the short, one-shot status lines a flow emits between steps: ✓ Detected Rust, a [1/4] step counter, a section heading, a warn or error notice. It composes the two theme layers — a Palette for color and a Glyphs set for the leading symbol — so every line honours NO_COLOR, TTY detection, and UTF-8 capability exactly like the rest of the CLI surface.

The writer is injected, so callers bind it to a real stream with StatusReporter::from_env (stderr, matching the “diagnostics to stderr” convention) while tests assert on an in-memory buffer via StatusReporter::new.

Structs§

StatusReporter
A status-line reporter over an injected writer, palette, and glyph set.