aboutsummaryrefslogtreecommitdiff
path: root/src/nix/diff-closures.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-24 20:38:56 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-12-03 23:22:22 +0100
commitea2062a2d9144d78588675950fc04756f0d200a5 (patch)
tree3727b9b8b07b12c2375574c9101bf79bce6fcd3a /src/nix/diff-closures.cc
parenta1cd805cba7a4408e75779bc4099f92e81fd6ac7 (diff)
Move most store-related commands to 'nix store'
Diffstat (limited to 'src/nix/diff-closures.cc')
-rw-r--r--src/nix/diff-closures.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nix/diff-closures.cc b/src/nix/diff-closures.cc
index 30e7b20e1..f72b5eff7 100644
--- a/src/nix/diff-closures.cc
+++ b/src/nix/diff-closures.cc
@@ -121,14 +121,12 @@ struct CmdDiffClosures : SourceExprCommand
return "show what packages and versions were added and removed between two closures";
}
- Category category() override { return catSecondary; }
-
Examples examples() override
{
return {
{
"To show what got added and removed between two versions of the NixOS system profile:",
- "nix diff-closures /nix/var/nix/profiles/system-655-link /nix/var/nix/profiles/system-658-link",
+ "nix store diff-closures /nix/var/nix/profiles/system-655-link /nix/var/nix/profiles/system-658-link",
},
};
}
@@ -143,4 +141,4 @@ struct CmdDiffClosures : SourceExprCommand
}
};
-static auto rCmdDiffClosures = registerCommand<CmdDiffClosures>("diff-closures");
+static auto rCmdDiffClosures = registerCommand2<CmdDiffClosures>({"store", "diff-closures"});