forked from lix-project/lix
Merge pull request #5540 from samueldr/fix/key-subcommand
nix key: Fix error message and don't require flakes
This commit is contained in:
commit
44aed58538
|
@ -218,8 +218,7 @@ struct CmdKey : NixMultiCommand
|
||||||
void run() override
|
void run() override
|
||||||
{
|
{
|
||||||
if (!command)
|
if (!command)
|
||||||
throw UsageError("'nix flake' requires a sub-command.");
|
throw UsageError("'nix key' requires a sub-command.");
|
||||||
settings.requireExperimentalFeature(Xp::Flakes);
|
|
||||||
command->second->prepare();
|
command->second->prepare();
|
||||||
command->second->run();
|
command->second->run();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue