mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
info store alias added to store-ping
This commit is contained in:
parent
b4b1a07f97
commit
5c65379b22
1 changed files with 11 additions and 1 deletions
|
@ -46,5 +46,15 @@ struct CmdPingStore : StoreCommand, MixJSON
|
|||
}
|
||||
};
|
||||
|
||||
struct CmdInfoStore : CmdPingStore
|
||||
{
|
||||
void run(nix::ref<nix::Store> store) override
|
||||
{
|
||||
warn("'nix store info' is a deprecated alias for 'nix store ping'");
|
||||
CmdPingStore::run(store);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
static auto rCmdPingStore = registerCommand2<CmdPingStore>({"store", "ping"});
|
||||
static auto rCmdInfoStore = registerCommand2<CmdPingStore>({"store", "info"});
|
||||
static auto rCmdInfoStore = registerCommand2<CmdInfoStore>({"store", "info"});
|
||||
|
|
Loading…
Reference in a new issue