diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-06-18 16:01:35 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-06-18 16:25:31 +0200 |
commit | a0de58f471c9087d8e6cc60a6078f9940a125b15 (patch) | |
tree | 45211b7ecd10f372c9a4a8e4b6cba7a30560ce21 /src/nix/build.cc | |
parent | eb18aedccbc0d01b6a5cc720ce1befd0b316aebf (diff) |
Make subcommand construction in MultiCommand lazy
Diffstat (limited to 'src/nix/build.cc')
-rw-r--r-- | src/nix/build.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc index c08ec0e62..d8ce8cc80 100644 --- a/src/nix/build.cc +++ b/src/nix/build.cc @@ -25,11 +25,6 @@ struct CmdBuild : MixDryRun, InstallablesCommand .set(&outLink, Path("")); } - std::string name() override - { - return "build"; - } - std::string description() override { return "build a derivation or fetch a store path"; @@ -72,4 +67,4 @@ struct CmdBuild : MixDryRun, InstallablesCommand } }; -static RegisterCommand r1(make_ref<CmdBuild>()); +static auto r1 = registerCommand<CmdBuild>("build"); |