cmd/pool: add verbose flag to list orders command

This commit is contained in:
Oliver Gugger 2020-10-01 13:16:59 +02:00
parent f919298e58
commit 5e90bd7c6f
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -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