Skip to main content

should_report

Function should_report 

Source
pub fn should_report(quiet: bool) -> bool
Expand description

Whether progress should be shown on stderr: not explicitly silenced (--quiet / -q), and either MKIT_PROGRESS forces a decision or stderr is a tty. Mirrors term::use_color_stderr’s NO_COLOR/CLICOLOR_FORCE-style override convention — always is how CLI integration tests observe progress lines over a piped (non-tty) stderr; never is an explicit opt-out distinct from --quiet (e.g. for scripting environments that set it once instead of threading --quiet through every call site).