aboutsummaryrefslogtreecommitdiff
path: root/src/nix/dump-path.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-18 16:01:35 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-06-18 16:25:31 +0200
commita0de58f471c9087d8e6cc60a6078f9940a125b15 (patch)
tree45211b7ecd10f372c9a4a8e4b6cba7a30560ce21 /src/nix/dump-path.cc
parenteb18aedccbc0d01b6a5cc720ce1befd0b316aebf (diff)
Make subcommand construction in MultiCommand lazy
Diffstat (limited to 'src/nix/dump-path.cc')
-rw-r--r--src/nix/dump-path.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nix/dump-path.cc b/src/nix/dump-path.cc
index f411c0cb7..90f1552d9 100644
--- a/src/nix/dump-path.cc
+++ b/src/nix/dump-path.cc
@@ -5,11 +5,6 @@ using namespace nix;
struct CmdDumpPath : StorePathCommand
{
- std::string name() override
- {
- return "dump-path";
- }
-
std::string description() override
{
return "dump a store path to stdout (in NAR format)";
@@ -33,4 +28,4 @@ struct CmdDumpPath : StorePathCommand
}
};
-static RegisterCommand r1(make_ref<CmdDumpPath>());
+static auto r1 = registerCommand<CmdDumpPath>("dump-path");