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.
This commit is contained in:
Conner Fromknecht 2020-04-03 16:40:34 -07:00
parent 4aceaba1be
commit 3233388750
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
2 changed files with 7 additions and 7 deletions

@ -12,7 +12,7 @@ import (
var addInvoiceCommand = cli.Command{ var addInvoiceCommand = cli.Command{
Name: "addinvoice", Name: "addinvoice",
Category: "Payments", Category: "Invoices",
Usage: "Add a new invoice.", Usage: "Add a new invoice.",
Description: ` Description: `
Add a new invoice, expressing intent for a future payment. Add a new invoice, expressing intent for a future payment.
@ -129,7 +129,7 @@ func addInvoice(ctx *cli.Context) error {
var lookupInvoiceCommand = cli.Command{ var lookupInvoiceCommand = cli.Command{
Name: "lookupinvoice", Name: "lookupinvoice",
Category: "Payments", Category: "Invoices",
Usage: "Lookup an existing invoice by its payment hash.", Usage: "Lookup an existing invoice by its payment hash.",
ArgsUsage: "rhash", ArgsUsage: "rhash",
Flags: []cli.Flag{ Flags: []cli.Flag{
@ -180,7 +180,7 @@ func lookupInvoice(ctx *cli.Context) error {
var listInvoicesCommand = cli.Command{ var listInvoicesCommand = cli.Command{
Name: "listinvoices", Name: "listinvoices",
Category: "Payments", Category: "Invoices",
Usage: "List all invoices currently stored within the database. Any " + Usage: "List all invoices currently stored within the database. Any " +
"active debug invoices are ignored.", "active debug invoices are ignored.",
Description: ` Description: `
@ -247,7 +247,7 @@ func listInvoices(ctx *cli.Context) error {
var decodePayReqCommand = cli.Command{ var decodePayReqCommand = cli.Command{
Name: "decodepayreq", Name: "decodepayreq",
Category: "Payments", Category: "Invoices",
Usage: "Decode a payment request.", Usage: "Decode a payment request.",
Description: "Decode the passed payment request revealing the destination, payment hash and value of the payment request", Description: "Decode the passed payment request revealing the destination, payment hash and value of the payment request",
ArgsUsage: "pay_req", ArgsUsage: "pay_req",

@ -34,7 +34,7 @@ func getInvoicesClient(ctx *cli.Context) (invoicesrpc.InvoicesClient, func()) {
var settleInvoiceCommand = cli.Command{ var settleInvoiceCommand = cli.Command{
Name: "settleinvoice", Name: "settleinvoice",
Category: "Payments", Category: "Invoices",
Usage: "Reveal a preimage and use it to settle the corresponding invoice.", Usage: "Reveal a preimage and use it to settle the corresponding invoice.",
Description: ` Description: `
Todo.`, Todo.`,
@ -88,7 +88,7 @@ func settleInvoice(ctx *cli.Context) error {
var cancelInvoiceCommand = cli.Command{ var cancelInvoiceCommand = cli.Command{
Name: "cancelinvoice", Name: "cancelinvoice",
Category: "Payments", Category: "Invoices",
Usage: "Cancels a (hold) invoice", Usage: "Cancels a (hold) invoice",
Description: ` Description: `
Todo.`, Todo.`,
@ -141,7 +141,7 @@ func cancelInvoice(ctx *cli.Context) error {
var addHoldInvoiceCommand = cli.Command{ var addHoldInvoiceCommand = cli.Command{
Name: "addholdinvoice", Name: "addholdinvoice",
Category: "Payments", Category: "Invoices",
Usage: "Add a new hold invoice.", Usage: "Add a new hold invoice.",
Description: ` Description: `
Add a new invoice, expressing intent for a future payment. Add a new invoice, expressing intent for a future payment.