working on lotus client UX

This commit is contained in:
whyrusleeping 2020-07-23 18:52:29 -07:00
parent 4710ce6f66
commit 2cf59a23e7

View File

@ -56,17 +56,17 @@ var clientCmd = &cli.Command{
Name: "client", Name: "client",
Usage: "Make deals, store data, retrieve data", Usage: "Make deals, store data, retrieve data",
Subcommands: []*cli.Command{ Subcommands: []*cli.Command{
clientImportCmd, WithCategory("storage", clientDealCmd),
clientDropCmd, WithCategory("storage", clientQueryAskCmd),
clientCommPCmd, WithCategory("storage", clientListDeals),
clientLocalCmd, WithCategory("storage", clientGetDealCmd),
clientDealCmd, WithCategory("data", clientImportCmd),
clientFindCmd, WithCategory("data", clientDropCmd),
clientRetrieveCmd, WithCategory("data", clientLocalCmd),
clientQueryAskCmd, WithCategory("retrieval", clientFindCmd),
clientListDeals, WithCategory("retrieval", clientRetrieveCmd),
clientCarGenCmd, WithCategory("util", clientCommPCmd),
clientGetDealCmd, WithCategory("util", clientCarGenCmd),
}, },
} }
@ -164,7 +164,7 @@ var clientDropCmd = &cli.Command{
var clientCommPCmd = &cli.Command{ var clientCommPCmd = &cli.Command{
Name: "commP", 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]", ArgsUsage: "[inputFile minerAddress]",
Flags: []cli.Flag{ Flags: []cli.Flag{
&CidBaseFlag, &CidBaseFlag,
@ -204,7 +204,7 @@ var clientCommPCmd = &cli.Command{
var clientCarGenCmd = &cli.Command{ var clientCarGenCmd = &cli.Command{
Name: "generate-car", Name: "generate-car",
Usage: "generate a car file from input", Usage: "Generate a car file from input",
ArgsUsage: "[inputPath outputPath]", ArgsUsage: "[inputPath outputPath]",
Action: func(cctx *cli.Context) error { Action: func(cctx *cli.Context) error {
api, closer, err := GetFullNodeAPI(cctx) api, closer, err := GetFullNodeAPI(cctx)
@ -429,7 +429,7 @@ var clientDealCmd = &cli.Command{
var clientFindCmd = &cli.Command{ var clientFindCmd = &cli.Command{
Name: "find", Name: "find",
Usage: "find data in the network", Usage: "Find data in the network",
ArgsUsage: "[dataCid]", ArgsUsage: "[dataCid]",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{
@ -496,7 +496,7 @@ const DefaultMaxRetrievePrice = 1
var clientRetrieveCmd = &cli.Command{ var clientRetrieveCmd = &cli.Command{
Name: "retrieve", Name: "retrieve",
Usage: "retrieve data from network", Usage: "Retrieve data from network",
ArgsUsage: "[dataCid outputPath]", ArgsUsage: "[dataCid outputPath]",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{
@ -642,7 +642,7 @@ var clientRetrieveCmd = &cli.Command{
var clientQueryAskCmd = &cli.Command{ var clientQueryAskCmd = &cli.Command{
Name: "query-ask", Name: "query-ask",
Usage: "find a miners ask", Usage: "Find a miners ask",
ArgsUsage: "[minerAddress]", ArgsUsage: "[minerAddress]",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.StringFlag{ &cli.StringFlag{