pub fn resolve_default_output_format(
env_override: Option<&str>,
config_override: Option<&str>,
is_tty: bool,
) -> StringExpand description
Resolves the default output format when the user gave no explicit format.
Precedence: env_override, then config_override (the [output].format
key in config.toml), then a TTY policy — an interactive terminal gets
human-friendly output, everything else (pipes, files, CI, most agents)
gets machine-readable JSON. Pure so it can be unit-tested without a real
terminal or config file.