pub fn should_output_json(cli: &Cli, config: Option<&Config>) -> boolExpand description
Determine if output should be JSON.
Resolution order (later wins):
- user config
output.format(orautoif unset) - repo config
output.format(falls back to user config) --output {auto|json|text}CLI flag--jsonCLI flag (deprecated; routes to JSON and emits a one-shot stderr warning the first time it fires in a process)
auto resolves by stream type: text on a TTY, JSON when piped.