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{
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user