From 2cf59a23e7113c7773491efb9766dfc30ea8cc1a Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Thu, 23 Jul 2020 18:52:29 -0700 Subject: [PATCH] working on lotus client UX --- cli/client.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/cli/client.go b/cli/client.go index 5cc16480c..693b2b83e 100644 --- a/cli/client.go +++ b/cli/client.go @@ -56,17 +56,17 @@ var clientCmd = &cli.Command{ Name: "client", Usage: "Make deals, store data, retrieve data", Subcommands: []*cli.Command{ - clientImportCmd, - clientDropCmd, - clientCommPCmd, - clientLocalCmd, - clientDealCmd, - clientFindCmd, - clientRetrieveCmd, - clientQueryAskCmd, - clientListDeals, - clientCarGenCmd, - clientGetDealCmd, + WithCategory("storage", clientDealCmd), + WithCategory("storage", clientQueryAskCmd), + WithCategory("storage", clientListDeals), + WithCategory("storage", clientGetDealCmd), + WithCategory("data", clientImportCmd), + WithCategory("data", clientDropCmd), + WithCategory("data", clientLocalCmd), + WithCategory("retrieval", clientFindCmd), + WithCategory("retrieval", clientRetrieveCmd), + WithCategory("util", clientCommPCmd), + WithCategory("util", clientCarGenCmd), }, } @@ -164,7 +164,7 @@ var clientDropCmd = &cli.Command{ var clientCommPCmd = &cli.Command{ Name: "commP", - Usage: "calculate the piece-cid (commP) of a CAR file", + Usage: "Calculate the piece-cid (commP) of a CAR file", ArgsUsage: "[inputFile minerAddress]", Flags: []cli.Flag{ &CidBaseFlag, @@ -204,7 +204,7 @@ var clientCommPCmd = &cli.Command{ var clientCarGenCmd = &cli.Command{ Name: "generate-car", - Usage: "generate a car file from input", + Usage: "Generate a car file from input", ArgsUsage: "[inputPath outputPath]", Action: func(cctx *cli.Context) error { api, closer, err := GetFullNodeAPI(cctx) @@ -429,7 +429,7 @@ var clientDealCmd = &cli.Command{ var clientFindCmd = &cli.Command{ Name: "find", - Usage: "find data in the network", + Usage: "Find data in the network", ArgsUsage: "[dataCid]", Flags: []cli.Flag{ &cli.StringFlag{ @@ -496,7 +496,7 @@ const DefaultMaxRetrievePrice = 1 var clientRetrieveCmd = &cli.Command{ Name: "retrieve", - Usage: "retrieve data from network", + Usage: "Retrieve data from network", ArgsUsage: "[dataCid outputPath]", Flags: []cli.Flag{ &cli.StringFlag{ @@ -642,7 +642,7 @@ var clientRetrieveCmd = &cli.Command{ var clientQueryAskCmd = &cli.Command{ Name: "query-ask", - Usage: "find a miners ask", + Usage: "Find a miners ask", ArgsUsage: "[minerAddress]", Flags: []cli.Flag{ &cli.StringFlag{