cmd/commands: fix custom message commands
The sendcustom and subscribecustom sub commands weren't correctly categorized and didn't have any usage text set.
This commit is contained in:
1 file changed
+8
-4
@@ -9,7 +9,9 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var sendCustomCommand = cli.Command{
|
var sendCustomCommand = cli.Command{
|
||||||
Name: "sendcustom",
|
Name: "sendcustom",
|
||||||
|
Category: "Peers",
|
||||||
|
Usage: "Send a custom p2p wire message to a peer",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "peer",
|
Name: "peer",
|
||||||
@@ -55,7 +57,10 @@ func sendCustom(ctx *cli.Context) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var subscribeCustomCommand = cli.Command{
|
var subscribeCustomCommand = cli.Command{
|
||||||
Name: "subscribecustom",
|
Name: "subscribecustom",
|
||||||
|
Category: "Peers",
|
||||||
|
Usage: "Subscribe to incoming custom p2p wire messages from all " +
|
||||||
|
"peers",
|
||||||
Action: actionDecorator(subscribeCustom),
|
Action: actionDecorator(subscribeCustom),
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,8 +70,7 @@ func subscribeCustom(ctx *cli.Context) error {
|
|||||||
defer cleanUp()
|
defer cleanUp()
|
||||||
|
|
||||||
stream, err := client.SubscribeCustomMessages(
|
stream, err := client.SubscribeCustomMessages(
|
||||||
ctxc,
|
ctxc, &lnrpc.SubscribeCustomMessagesRequest{},
|
||||||
&lnrpc.SubscribeCustomMessagesRequest{},
|
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in new issue
Block a user