OptionalenvDefaults to process.env.
OptionalformatRaw --format value, if the caller passed one. Accepts the aliases below.
OptionaljsonLegacy --json boolean, still declared by a few commands.
OptionalstdoutDefaults to process.stdout.isTTY.
Inputs to ResolveOutputFormat. Every field is injectable for tests.