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 { Action: func(cctx *cli.Context) error {
afmt := NewAppFmt(cctx.App) afmt := NewAppFmt(cctx.App)
if cctx.NArg() != 2 { if cctx.NArg() != 2 {
afmt.Println("Usage: query-retrieval-ask [minerAddress] [data CID]") afmt.Println("Usage: retrieval-ask [minerAddress] [data CID]")
return nil return nil
} }

View File

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

View File

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