aboutsummaryrefslogtreecommitdiff
path: root/src/nix/optimise-store.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/optimise-store.cc
parenta1cd805cba7a4408e75779bc4099f92e81fd6ac7 (diff)
Move most store-related commands to 'nix store'
Diffstat (limited to 'src/nix/optimise-store.cc')
-rw-r--r--src/nix/optimise-store.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nix/optimise-store.cc b/src/nix/optimise-store.cc
index 51a7a9756..bc7f175ac 100644
--- a/src/nix/optimise-store.cc
+++ b/src/nix/optimise-store.cc
@@ -18,17 +18,15 @@ struct CmdOptimiseStore : StoreCommand
return {
Example{
"To optimise the Nix store:",
- "nix optimise-store"
+ "nix store optimise"
},
};
}
- Category category() override { return catUtility; }
-
void run(ref<Store> store) override
{
store->optimiseStore();
}
};
-static auto rCmdOptimiseStore = registerCommand<CmdOptimiseStore>("optimise-store");
+static auto rCmdOptimiseStore = registerCommand2<CmdOptimiseStore>({"store", "optimise"});