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:
parent
4aceaba1be
commit
3233388750
@ -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",
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user