src/cli/output.rs
raw| 1 | use clap::ValueEnum; |
| 2 | |
| 3 | /// What output format to prefer, when there's an option? |
| 4 | #[derive(ValueEnum, Clone, Copy, Debug)] |
| 5 | pub enum OutputFormat { |
| 6 | /// Output that is meant to be read by humans, instead of programs. |
| 7 | /// |
| 8 | /// This type of output has no version, and is not meant to be |
| 9 | /// parsed by programs. |
| 10 | HumanReadable, |
| 11 | |
| 12 | /// Output as JSON. |
| 13 | Json, |
| 14 | } |