diff options
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r-- | src/nix/run.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc index fd4f92282..ece4d3854 100644 --- a/src/nix/run.cc +++ b/src/nix/run.cc @@ -61,11 +61,6 @@ struct CmdRun : InstallablesCommand .handler([&](std::vector<std::string> ss) { unset.insert(ss.front()); }); } - std::string name() override - { - return "run"; - } - std::string description() override { return "run a shell in which the specified packages are available"; @@ -182,7 +177,7 @@ struct CmdRun : InstallablesCommand } }; -static RegisterCommand r1(make_ref<CmdRun>()); +static auto r1 = registerCommand<CmdRun>("run"); void chrootHelper(int argc, char * * argv) { |