From 323338875091ed310250b0981fde809f2f76eb78 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Fri, 3 Apr 2020 16:40:34 -0700 Subject: [PATCH] cmd/lncli: move invoice-related cmds to Invoices category The Payments category is getting quite large, so this commit breaks out the invoice-related commands into their own category. --- cmd/lncli/cmd_invoice.go | 8 ++++---- cmd/lncli/invoicesrpc_active.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/lncli/cmd_invoice.go b/cmd/lncli/cmd_invoice.go index d2d118ed..feb56553 100644 --- a/cmd/lncli/cmd_invoice.go +++ b/cmd/lncli/cmd_invoice.go @@ -12,7 +12,7 @@ import ( var addInvoiceCommand = cli.Command{ Name: "addinvoice", - Category: "Payments", + Category: "Invoices", Usage: "Add a new invoice.", Description: ` Add a new invoice, expressing intent for a future payment. @@ -129,7 +129,7 @@ func addInvoice(ctx *cli.Context) error { var lookupInvoiceCommand = cli.Command{ Name: "lookupinvoice", - Category: "Payments", + Category: "Invoices", Usage: "Lookup an existing invoice by its payment hash.", ArgsUsage: "rhash", Flags: []cli.Flag{ @@ -180,7 +180,7 @@ func lookupInvoice(ctx *cli.Context) error { var listInvoicesCommand = cli.Command{ Name: "listinvoices", - Category: "Payments", + Category: "Invoices", Usage: "List all invoices currently stored within the database. Any " + "active debug invoices are ignored.", Description: ` @@ -247,7 +247,7 @@ func listInvoices(ctx *cli.Context) error { var decodePayReqCommand = cli.Command{ Name: "decodepayreq", - Category: "Payments", + Category: "Invoices", Usage: "Decode a payment request.", Description: "Decode the passed payment request revealing the destination, payment hash and value of the payment request", ArgsUsage: "pay_req", diff --git a/cmd/lncli/invoicesrpc_active.go b/cmd/lncli/invoicesrpc_active.go index d769336d..c565e7fe 100644 --- a/cmd/lncli/invoicesrpc_active.go +++ b/cmd/lncli/invoicesrpc_active.go @@ -34,7 +34,7 @@ func getInvoicesClient(ctx *cli.Context) (invoicesrpc.InvoicesClient, func()) { var settleInvoiceCommand = cli.Command{ Name: "settleinvoice", - Category: "Payments", + Category: "Invoices", Usage: "Reveal a preimage and use it to settle the corresponding invoice.", Description: ` Todo.`, @@ -88,7 +88,7 @@ func settleInvoice(ctx *cli.Context) error { var cancelInvoiceCommand = cli.Command{ Name: "cancelinvoice", - Category: "Payments", + Category: "Invoices", Usage: "Cancels a (hold) invoice", Description: ` Todo.`, @@ -141,7 +141,7 @@ func cancelInvoice(ctx *cli.Context) error { var addHoldInvoiceCommand = cli.Command{ Name: "addholdinvoice", - Category: "Payments", + Category: "Invoices", Usage: "Add a new hold invoice.", Description: ` Add a new invoice, expressing intent for a future payment.