mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
doc/rl-next; add pretty-json
This commit is contained in:
parent
44ca04b944
commit
bfecd13e9b
1 changed files with 10 additions and 0 deletions
10
doc/manual/rl-next/pretty-json.md
Normal file
10
doc/manual/rl-next/pretty-json.md
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
synopsis: "Prettified JSON output on the terminal"
|
||||||
|
issues: 12555
|
||||||
|
prs: [12652]
|
||||||
|
---
|
||||||
|
|
||||||
|
Scripts are mostly unaffected because for those, stdout will be a file or a pipe, not a terminal, and for those, the old single-line behavior applies.
|
||||||
|
|
||||||
|
`--json --pretty` can be passed to enable it even if the output is not a terminal.
|
||||||
|
If your script creates a pseudoterminal for Nix's stdout, you can pass `--no-pretty` to disable the new behavior.
|
Loading…
Add table
Add a link
Reference in a new issue