From 5e90bd7c6f089ff42d2fe0f85ca3d17316bc35d4 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 1 Oct 2020 13:16:59 +0200 Subject: [PATCH] cmd/pool: add verbose flag to list orders command --- cmd/pool/order.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cmd/pool/order.go b/cmd/pool/order.go index 71adef0..fd7280c 100644 --- a/cmd/pool/order.go +++ b/cmd/pool/order.go @@ -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