stern4rust/reporting/output_format.rs
1// Copyright 2025 Umberto Gotti <umberto.gotti@umbertogotti.dev>
2// Licensed under the MIT License
3// SPDX-License-Identifier: MIT
4
5use clap::ValueEnum;
6
7// Which of the two reports a run emits.
8//
9// The table stays the default. A tool that changed its human output the moment
10// it grew a machine one would break every terminal and every gate script
11// already reading it, to serve a consumer that has to opt in anyway.
12#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, ValueEnum)]
13pub enum OutputFormat {
14 #[default]
15 Text,
16 Json,
17}