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{
authCmd,
fetchParamCmd,
netCmd,
versionCmd,
authCmd,
logCmd,
waitApiCmd,
fetchParamCmd,
versionCmd,
}
var Commands = []*cli.Command{
authCmd,
chainCmd,
clientCmd,
fetchParamCmd,
mpoolCmd,
multisigCmd,
netCmd,
paychCmd,
sendCmd,
stateCmd,
syncCmd,
withCategory("basic", sendCmd),
withCategory("basic", walletCmd),
withCategory("basic", clientCmd),
withCategory("basic", multisigCmd),
withCategory("basic", paychCmd),
withCategory("developer", authCmd),
withCategory("developer", mpoolCmd),
withCategory("developer", stateCmd),
withCategory("developer", chainCmd),
withCategory("developer", logCmd),
withCategory("developer", waitApiCmd),
withCategory("developer", fetchParamCmd),
withCategory("network", netCmd),
withCategory("network", syncCmd),
versionCmd,
walletCmd,
logCmd,
waitApiCmd,
}
func withCategory(cat string, cmd *cli.Command) *cli.Command {
cmd.Category = cat
return cmd
}