cli_shared/output.rs
1// SPDX-License-Identifier: Apache-2.0
2//! Shared CLI output mode values.
3
4#[derive(Copy, Clone, Debug, PartialEq, Eq)]
5pub enum OutputMode {
6 Json,
7 // JSON, but only the decision-surface fields (heddle#470). Renders as
8 // `--output json-compact` on the CLI. Deliberately NOT a doc comment:
9 // a per-value help string forces clap's spaced long-help layout onto
10 // every command (the value list is rendered with the global --output
11 // arg), re-bloating all 100+ helps; the format semantics live in
12 // `heddle help output-formats` instead (heddle#652).
13 JsonCompact,
14 Text,
15}