miner: Group CLI commands
This commit is contained in:
parent
116e34d7ef
commit
ff3236ef36
30
cli/cmd.go
30
cli/cmd.go
@ -242,24 +242,24 @@ var CommonCommands = []*cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var Commands = []*cli.Command{
|
var Commands = []*cli.Command{
|
||||||
withCategory("basic", sendCmd),
|
WithCategory("basic", sendCmd),
|
||||||
withCategory("basic", walletCmd),
|
WithCategory("basic", walletCmd),
|
||||||
withCategory("basic", clientCmd),
|
WithCategory("basic", clientCmd),
|
||||||
withCategory("basic", multisigCmd),
|
WithCategory("basic", multisigCmd),
|
||||||
withCategory("basic", paychCmd),
|
WithCategory("basic", paychCmd),
|
||||||
withCategory("developer", authCmd),
|
WithCategory("developer", authCmd),
|
||||||
withCategory("developer", mpoolCmd),
|
WithCategory("developer", mpoolCmd),
|
||||||
withCategory("developer", stateCmd),
|
WithCategory("developer", stateCmd),
|
||||||
withCategory("developer", chainCmd),
|
WithCategory("developer", chainCmd),
|
||||||
withCategory("developer", logCmd),
|
WithCategory("developer", logCmd),
|
||||||
withCategory("developer", waitApiCmd),
|
WithCategory("developer", waitApiCmd),
|
||||||
withCategory("developer", fetchParamCmd),
|
WithCategory("developer", fetchParamCmd),
|
||||||
withCategory("network", netCmd),
|
WithCategory("network", netCmd),
|
||||||
withCategory("network", syncCmd),
|
WithCategory("network", syncCmd),
|
||||||
versionCmd,
|
versionCmd,
|
||||||
}
|
}
|
||||||
|
|
||||||
func withCategory(cat string, cmd *cli.Command) *cli.Command {
|
func WithCategory(cat string, cmd *cli.Command) *cli.Command {
|
||||||
cmd.Category = cat
|
cmd.Category = cat
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
@ -30,18 +30,18 @@ func main() {
|
|||||||
lotuslog.SetupLogLevels()
|
lotuslog.SetupLogLevels()
|
||||||
|
|
||||||
local := []*cli.Command{
|
local := []*cli.Command{
|
||||||
actorCmd,
|
|
||||||
storageDealsCmd,
|
|
||||||
retrievalDealsCmd,
|
|
||||||
infoCmd,
|
|
||||||
initCmd,
|
initCmd,
|
||||||
rewardsCmd,
|
|
||||||
runCmd,
|
runCmd,
|
||||||
stopCmd,
|
stopCmd,
|
||||||
sectorsCmd,
|
lcli.WithCategory("chain", actorCmd),
|
||||||
storageCmd,
|
lcli.WithCategory("chain", rewardsCmd),
|
||||||
workersCmd,
|
lcli.WithCategory("chain", infoCmd),
|
||||||
provingCmd,
|
lcli.WithCategory("market", storageDealsCmd),
|
||||||
|
lcli.WithCategory("market", retrievalDealsCmd),
|
||||||
|
lcli.WithCategory("storage", sectorsCmd),
|
||||||
|
lcli.WithCategory("storage", provingCmd),
|
||||||
|
lcli.WithCategory("storage", storageCmd),
|
||||||
|
lcli.WithCategory("storage", workersCmd),
|
||||||
}
|
}
|
||||||
jaeger := tracing.SetupJaegerTracing("lotus")
|
jaeger := tracing.SetupJaegerTracing("lotus")
|
||||||
defer func() {
|
defer func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user