mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
Restore 'nix flake info' as a deprecated alias
This commit is contained in:
parent
8a5203d3b8
commit
ef83ced4e1
1 changed files with 10 additions and 0 deletions
|
@ -230,6 +230,15 @@ struct CmdFlakeMetadata : FlakeCommand, MixJSON
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct CmdFlakeInfo : CmdFlakeMetadata
|
||||||
|
{
|
||||||
|
void run(nix::ref<nix::Store> store) override
|
||||||
|
{
|
||||||
|
warn("'nix flake info' is a deprecated alias for 'nix flake metadata'");
|
||||||
|
CmdFlakeMetadata::run(store);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
struct CmdFlakeCheck : FlakeCommand
|
struct CmdFlakeCheck : FlakeCommand
|
||||||
{
|
{
|
||||||
bool build = true;
|
bool build = true;
|
||||||
|
@ -1024,6 +1033,7 @@ struct CmdFlake : NixMultiCommand
|
||||||
{"update", []() { return make_ref<CmdFlakeUpdate>(); }},
|
{"update", []() { return make_ref<CmdFlakeUpdate>(); }},
|
||||||
{"lock", []() { return make_ref<CmdFlakeLock>(); }},
|
{"lock", []() { return make_ref<CmdFlakeLock>(); }},
|
||||||
{"metadata", []() { return make_ref<CmdFlakeMetadata>(); }},
|
{"metadata", []() { return make_ref<CmdFlakeMetadata>(); }},
|
||||||
|
{"info", []() { return make_ref<CmdFlakeInfo>(); }},
|
||||||
{"check", []() { return make_ref<CmdFlakeCheck>(); }},
|
{"check", []() { return make_ref<CmdFlakeCheck>(); }},
|
||||||
{"init", []() { return make_ref<CmdFlakeInit>(); }},
|
{"init", []() { return make_ref<CmdFlakeInit>(); }},
|
||||||
{"new", []() { return make_ref<CmdFlakeNew>(); }},
|
{"new", []() { return make_ref<CmdFlakeNew>(); }},
|
||||||
|
|
Loading…
Reference in a new issue