cli: Improve lotus helptext

This commit is contained in:
Łukasz Magiera 2020-05-13 13:08:59 +02:00
parent ea6121a951
commit 41c019b3d2

View File

@ -210,28 +210,33 @@ func ReqContext(cctx *cli.Context) context.Context {
} }
var CommonCommands = []*cli.Command{ var CommonCommands = []*cli.Command{
authCmd,
fetchParamCmd,
netCmd, netCmd,
versionCmd, authCmd,
logCmd, logCmd,
waitApiCmd, waitApiCmd,
fetchParamCmd,
versionCmd,
} }
var Commands = []*cli.Command{ var Commands = []*cli.Command{
authCmd, withCategory("basic", sendCmd),
chainCmd, withCategory("basic", walletCmd),
clientCmd, withCategory("basic", clientCmd),
fetchParamCmd, withCategory("basic", multisigCmd),
mpoolCmd, withCategory("basic", paychCmd),
multisigCmd, withCategory("developer", authCmd),
netCmd, withCategory("developer", mpoolCmd),
paychCmd, withCategory("developer", stateCmd),
sendCmd, withCategory("developer", chainCmd),
stateCmd, withCategory("developer", logCmd),
syncCmd, withCategory("developer", waitApiCmd),
withCategory("developer", fetchParamCmd),
withCategory("network", netCmd),
withCategory("network", syncCmd),
versionCmd, versionCmd,
walletCmd, }
logCmd,
waitApiCmd, func withCategory(cat string, cmd *cli.Command) *cli.Command {
cmd.Category = cat
return cmd
} }