nix registry: Mark experimental

This is part of the flakes feature. Mark it as such.
This commit is contained in:
Samuel Dionne-Riel 2021-11-12 03:18:31 -05:00
parent 52a3b2ee63
commit 30e5c5c55f

View file

@ -226,6 +226,7 @@ struct CmdRegistry : virtual NixMultiCommand
void run() override void run() override
{ {
settings.requireExperimentalFeature(Xp::Flakes);
if (!command) if (!command)
throw UsageError("'nix registry' requires a sub-command."); throw UsageError("'nix registry' requires a sub-command.");
command->second->prepare(); command->second->prepare();