mirror of
https://github.com/NixOS/nix.git
synced 2024-11-26 16:52:27 +00:00
info store alias added to store-ping
This commit is contained in:
parent
b4b1a07f97
commit
5c65379b22
@ -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 New Issue
Block a user