heddle-cli-shared 0.5.0

CLI-side utilities shared between Heddle's OSS cli crate and the closed heddle-client crate: user config, remote target resolution, client config.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: Apache-2.0
//! Shared CLI output mode values.

#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum OutputMode {
    Json,
    // JSON, but only the decision-surface fields (heddle#470). Renders as
    // `--output json-compact` on the CLI. Deliberately NOT a doc comment:
    // a per-value help string forces clap's spaced long-help layout onto
    // every command (the value list is rendered with the global --output
    // arg), re-bloating all 100+ helps; the format semantics live in
    // `heddle help output-formats` instead (heddle#652).
    JsonCompact,
    Text,
}