cli: Improve lotus helptext
This commit is contained in:
parent
ea6121a951
commit
41c019b3d2
39
cli/cmd.go
39
cli/cmd.go
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user