aboutsummaryrefslogtreecommitdiff
path: root/src/nix/repl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/repl.cc')
-rw-r--r--src/nix/repl.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix/repl.cc b/src/nix/repl.cc
index 35c7aec66..c2b65b6ea 100644
--- a/src/nix/repl.cc
+++ b/src/nix/repl.cc
@@ -801,8 +801,6 @@ struct CmdRepl : StoreCommand, MixEvalArgs
expectArgs("files", &files);
}
- std::string name() override { return "repl"; }
-
std::string description() override
{
return "start an interactive environment for evaluating Nix expressions";
@@ -816,6 +814,6 @@ struct CmdRepl : StoreCommand, MixEvalArgs
}
};
-static RegisterCommand r1(make_ref<CmdRepl>());
+static auto r1 = registerCommand<CmdRepl>("repl");
}