You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(output): default to json instead of toon for non-TTY stdout (DX-5867)
When stdout is not a terminal (piped / scripted / agent invocations), the
default output format is now JSON instead of TOON. JSON is understood by
virtually every downstream tool and parses cleanly, making it the safer
universal default for the piped path; TOON is newer and not as widely
supported, so it's a poor fit as the implicit default.
TOON remains fully supported via `--format toon` and the config file. Only
the default-when-unset changes; the CLI flag > config > built-in default
ordering is unchanged, and the TTY default stays `table`.
Syncs the module docs, `--format` help, the embedded `qn agent context`
guide, and the README (intro example, formats table, config defaults) to
describe JSON as the non-TTY default.
@@ -159,7 +185,7 @@ format = "yaml" # default --format value
159
185
wide = true# always show extra columns in table/md output
160
186
```
161
187
162
-
CLI flags win over config values. Built-in defaults: `format = "table"` when stdout is a TTY, `"toon"` otherwise; `wide = false`.
188
+
CLI flags win over config values. Built-in defaults: `format = "table"` when stdout is a TTY, `"json"` otherwise; `wide = false`.
163
189
164
190
`qn` follows the [Command Line Interface Guidelines](https://clig.dev/): data on stdout, diagnostics on stderr, meaningful exit codes (0 success, 2 API error, 3 network error, 4 auth/config, 5 needs confirmation), and a documented `-h`/`--help` at every subcommand level.
0 commit comments