1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-12 19:05:08 +02:00

nix-cli: Add --json --pretty / --no-pretty

Default: istty(stdout)

This refactors `nix develop` internals a bit to use the `json` type
more. The assertion now operates in the in-memory json instead of
re-parsing it. While this is technically a weaker guarantee, we
should be able to rely on the library to get this right. It's its
most essential purpose.
This commit is contained in:
Robert Hensing 2025-03-13 20:19:21 +00:00
parent e9af7a0749
commit fe00dfbd56
17 changed files with 151 additions and 29 deletions

View file

@ -157,6 +157,7 @@ suites = [
'impure-derivations.sh',
'path-from-hash-part.sh',
'path-info.sh',
'json.sh',
'toString-path.sh',
'read-only-store.sh',
'nested-sandboxing.sh',