mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Make subcommand construction in MultiCommand lazy
This commit is contained in:
parent
eb18aedccb
commit
a0de58f471
29 changed files with 73 additions and 282 deletions
|
@ -18,11 +18,6 @@ struct CmdEval : MixJSON, InstallableCommand
|
|||
mkFlag(0, "raw", "print strings unquoted", &raw);
|
||||
}
|
||||
|
||||
std::string name() override
|
||||
{
|
||||
return "eval";
|
||||
}
|
||||
|
||||
std::string description() override
|
||||
{
|
||||
return "evaluate a Nix expression";
|
||||
|
@ -74,4 +69,4 @@ struct CmdEval : MixJSON, InstallableCommand
|
|||
}
|
||||
};
|
||||
|
||||
static RegisterCommand r1(make_ref<CmdEval>());
|
||||
static auto r1 = registerCommand<CmdEval>("eval");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue