mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-18 13:08:33 +02:00
cmd/pool: add verbose flag to list orders command
This commit is contained in:
parent
f919298e58
commit
5e90bd7c6f
1 changed files with 9 additions and 2 deletions
|
|
@ -425,7 +425,12 @@ var ordersListCommand = cli.Command{
|
|||
Usage: "list all existing orders",
|
||||
Description: `
|
||||
List all orders that are stored in the local order database`,
|
||||
Flags: []cli.Flag{},
|
||||
Flags: []cli.Flag{
|
||||
cli.BoolFlag{
|
||||
Name: "verbose",
|
||||
Usage: "show verbose output including events",
|
||||
},
|
||||
},
|
||||
Action: ordersList,
|
||||
}
|
||||
|
||||
|
|
@ -437,7 +442,9 @@ func ordersList(ctx *cli.Context) error {
|
|||
defer cleanup()
|
||||
|
||||
resp, err := client.ListOrders(
|
||||
context.Background(), &poolrpc.ListOrdersRequest{},
|
||||
context.Background(), &poolrpc.ListOrdersRequest{
|
||||
Verbose: ctx.Bool("verbose"),
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue