1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00
nix/doc/manual/rl-next/pretty-json.md
2025-05-15 00:12:42 +02:00

475 B

synopsis issues prs
Prettified JSON output on the terminal 12555
12652

This makes the output easier to read.

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.