sq/cli/
output.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use clap::ValueEnum;

/// What output format to prefer, when there's an option?
#[derive(ValueEnum, Clone, Copy, Debug)]
pub enum OutputFormat {
    /// Output that is meant to be read by humans, instead of programs.
    ///
    /// This type of output has no version, and is not meant to be
    /// parsed by programs.
    HumanReadable,

    /// Output as JSON.
    Json,
}