pub struct ResolvedOutput {
pub mode: OutputMode,
pub quiet_was_explicit: bool,
}Expand description
The resolved output state per ADR-0017 Amendment 1: the
OutputMode the resolution ladder picked, plus a
quiet_was_explicit discriminator that distinguishes the user’s
explicit request for silence (--quiet / -q /
DOIGET_MODE=quiet / --mode quiet) from the resolver’s
implicit fallback to Quiet when stdout is not a TTY.
Per ADR-0017 Amendment 1 (extended by Amendment 2, #301),
informational commands whose stdout is a status report (audit-log
Human, config show/path, provenance migrate, fetch/batch status)
suppress on any Quiet; artifact commands whose stdout IS the
product — bib / csl / capabilities plus the read/inspection
commands info / list-recent / search / link / text, and
audit-log --verify --mode json — suppress only on explicit
Quiet. See is_artifact_command. The wire format of
OutputMode (DOIGET_MODE string values, the modes array in
capabilities JSON, the --mode clap values) is unchanged;
this struct lives only in-memory.
Fields§
§mode: OutputModeThe effective mode for this invocation.
quiet_was_explicit: booltrue iff the user supplied an explicit Quiet signal
(--quiet, -q, --mode quiet, DOIGET_MODE=quiet).
false for the non-TTY fallback to Quiet, and for any
non-Quiet mode.
Trait Implementations§
Source§impl Clone for ResolvedOutput
impl Clone for ResolvedOutput
Source§fn clone(&self) -> ResolvedOutput
fn clone(&self) -> ResolvedOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more