Store info command help updates
This commit is contained in:
@@ -17,7 +17,7 @@ struct CmdPingStore : StoreCommand, MixJSON
|
||||
std::string doc() override
|
||||
{
|
||||
return
|
||||
#include "ping-store.md"
|
||||
#include "store-info.md"
|
||||
;
|
||||
}
|
||||
|
||||
@@ -50,11 +50,11 @@ struct CmdInfoStore : CmdPingStore
|
||||
{
|
||||
void run(nix::ref<nix::Store> store) override
|
||||
{
|
||||
warn("'nix store info' is a deprecated alias for 'nix store ping'");
|
||||
warn("'nix store ping' is a deprecated alias for 'nix store info'");
|
||||
CmdPingStore::run(store);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
static auto rCmdPingStore = registerCommand2<CmdPingStore>({"store", "ping"});
|
||||
static auto rCmdInfoStore = registerCommand2<CmdInfoStore>({"store", "info"});
|
||||
static auto rCmdPingStore = registerCommand2<CmdPingStore>({"store", "info"});
|
||||
static auto rCmdInfoStore = registerCommand2<CmdInfoStore>({"store", "ping"});
|
||||
@@ -5,19 +5,19 @@ R""(
|
||||
* Test whether connecting to a remote Nix store via SSH works:
|
||||
|
||||
```console
|
||||
# nix store ping --store ssh://mac1
|
||||
# nix store info --store ssh://mac1
|
||||
```
|
||||
|
||||
* Test whether a URL is a valid binary cache:
|
||||
|
||||
```console
|
||||
# nix store ping --store https://cache.nixos.org
|
||||
# nix store info --store https://cache.nixos.org
|
||||
```
|
||||
|
||||
* Test whether the Nix daemon is up and running:
|
||||
|
||||
```console
|
||||
# nix store ping --store daemon
|
||||
# nix store info --store daemon
|
||||
```
|
||||
|
||||
# Description
|
||||
Reference in New Issue
Block a user