fix: rename query-retrieval-ask to retrieval-ask

This commit is contained in:
Dirk McCormick 2021-12-17 18:01:12 +01:00
parent 0f22d51309
commit bb56e97177
3 changed files with 13 additions and 13 deletions

View File

@ -1044,7 +1044,7 @@ var clientQueryRetrievalAskCmd = &cli.Command{
Action: func(cctx *cli.Context) error {
afmt := NewAppFmt(cctx.App)
if cctx.NArg() != 2 {
afmt.Println("Usage: query-retrieval-ask [minerAddress] [data CID]")
afmt.Println("Usage: retrieval-ask [minerAddress] [data CID]")
return nil
}

View File

@ -424,13 +424,13 @@ COMMANDS:
local List locally imported data
stat Print information about a locally stored file (piece size, etc)
RETRIEVAL:
find Find data in the network
query-retrieval-ask Get a miner's retrieval ask
retrieve Retrieve data from network
cat Show data from network
ls List object links
cancel-retrieval Cancel a retrieval deal by deal ID; this also cancels the associated transfer
list-retrievals List retrieval market deals
find Find data in the network
retrieval-ask Get a miner's retrieval ask
retrieve Retrieve data from network
cat Show data from network
ls List object links
cancel-retrieval Cancel a retrieval deal by deal ID; this also cancels the associated transfer
list-retrievals List retrieval market deals
STORAGE:
deal Initialize storage deal with a miner
query-ask Find a miners ask
@ -536,13 +536,13 @@ OPTIONS:
```
### lotus client query-retrieval-ask
### lotus client retrieval-ask
```
NAME:
lotus client query-retrieval-ask - Get a miner's retrieval ask
lotus client retrieval-ask - Get a miner's retrieval ask
USAGE:
lotus client query-retrieval-ask [command options] [minerAddress] [data CID]
lotus client retrieval-ask [command options] [minerAddress] [data CID]
CATEGORY:
RETRIEVAL

View File

@ -101,8 +101,8 @@ func RunClientTest(t *testing.T, cmds []*lcli.Command, clientNode *TestFullNode)
time.Sleep(time.Second)
}
// client query-retrieval-ask --size=1 <miner addr> <data CID>
out = clientCLI.RunCmd("client", "query-retrieval-ask", "--size=1", minerAddr.String(), dataCid.String())
// client retrieval-ask --size=1 <miner addr> <data CID>
out = clientCLI.RunCmd("client", "retrieval-ask", "--size=1", minerAddr.String(), dataCid.String())
require.Regexp(t, regexp.MustCompile("Ask:"), out)
fmt.Println("retrieval ask:\n", out)