Files
lix/doc/manual/rl-next/diff-closure-as-json.md
T
Pamplemousse 04cc3db4df Allow diff-closures to output JSON
Change-Id: Ia17ea93d98b38e3415c35257daf07c7978f50ef4
2025-03-12 08:03:49 +01:00

845 B

synopsis, issues, cls, category, credits
synopsis issues cls category credits
Allow `nix store diff-closures` to output JSON
2360
Improvements
pamplemousse

Add the --json option to the nix store diff-closures command to allow users to collect diff information into a machine readable format.

$ build/lix/nix/nix store diff-closures --json /run/current-system /nix/store/n1prick95pihd4lkv58nn3pzg1yivcdb-neovim-0.10.4/bin/nvim | jq | head -n 23
{
  "packages": {
    "02overridedns": {
      "sizeDelta": -688,
      "versionsAfter": [],
      "versionsBefore": [
        ""
      ]
    },
    "50-coredump.conf": {
      "sizeDelta": -1976,
      "versionsAfter": [],
      "versionsBefore": [
        ""
      ]
    },
    "Diff": {
      "sizeDelta": -514864,
      "versionsAfter": [],
      "versionsBefore": [
        "0.4.1"
      ]
    },