cmd/lncli: group Mission Control cmds into own category

To make the "Payments" category a bit less overloaded and to move the
Mission Control configuration commands away from the "root" category, we
create the new "Mission Control" category that we move the commands
into. We do this in a single commit so the next one where we move them
into the same file can be a pure code move without any additional
changes.
This commit is contained in:
Oliver Gugger committed 2021-09-23 16:59:41 +02:00
1 parent da418ef46b
commit 28c25d7e9c
5 files changed
+9 -7

No files matched your search

+3 -2
View File
@@ -6,8 +6,9 @@ import (
) )
var getCfgCommand = cli.Command{ var getCfgCommand = cli.Command{
Name: "getmccfg", Name: "getmccfg",
Usage: "Display mission control's config.", Category: "Mission Control",
Usage: "Display mission control's config.",
Description: ` Description: `
Returns the config currently being used by mission control. Returns the config currently being used by mission control.
`, `,
+3 -2
View File
@@ -6,8 +6,9 @@ import (
) )
var setCfgCommand = cli.Command{ var setCfgCommand = cli.Command{
Name: "setmccfg", Name: "setmccfg",
Usage: "Set mission control's config.", Category: "Mission Control",
Usage: "Set mission control's config.",
Description: ` Description: `
Update the config values being used by mission control to calculate Update the config values being used by mission control to calculate
the probability that payment routes will succeed. the probability that payment routes will succeed.
+1 -1
View File
@@ -8,7 +8,7 @@ import (
var queryMissionControlCommand = cli.Command{ var queryMissionControlCommand = cli.Command{
Name: "querymc", Name: "querymc",
Category: "Payments", Category: "Mission Control",
Usage: "Query the internal mission control state.", Usage: "Query the internal mission control state.",
Action: actionDecorator(queryMissionControl), Action: actionDecorator(queryMissionControl),
} }
+1 -1
View File
@@ -13,7 +13,7 @@ import (
var queryProbCommand = cli.Command{ var queryProbCommand = cli.Command{
Name: "queryprob", Name: "queryprob",
Category: "Payments", Category: "Mission Control",
Usage: "Estimate a success probability.", Usage: "Estimate a success probability.",
ArgsUsage: "from-node to-node amt", ArgsUsage: "from-node to-node amt",
Action: actionDecorator(queryProb), Action: actionDecorator(queryProb),
+1 -1
View File
@@ -8,7 +8,7 @@ import (
var resetMissionControlCommand = cli.Command{ var resetMissionControlCommand = cli.Command{
Name: "resetmc", Name: "resetmc",
Category: "Payments", Category: "Mission Control",
Usage: "Reset internal mission control state.", Usage: "Reset internal mission control state.",
Action: actionDecorator(resetMissionControl), Action: actionDecorator(resetMissionControl),
} }