1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

doc/rl-next; add pretty-json

This commit is contained in:
Robert Hensing 2025-05-14 23:43:18 +02:00
parent 44ca04b944
commit bfecd13e9b

View 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.