From 3a68d9e506004ba5de455c5fdca09229f4754099 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Mon, 8 Sep 2014 22:27:17 -0700 Subject: [PATCH] command/keys: use PrefixedUi for keys command --- command/keys.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/command/keys.go b/command/keys.go index 0373804cf7..9be460063c 100644 --- a/command/keys.go +++ b/command/keys.go @@ -33,6 +33,13 @@ func (c *KeysCommand) Run(args []string) int { return 1 } + c.Ui = &cli.PrefixedUi{ + OutputPrefix: "", + InfoPrefix: "==> ", + ErrorPrefix: "", + Ui: c.Ui, + } + // Only accept a single argument found := listKeys for _, arg := range []string{installKey, useKey, removeKey} { @@ -57,6 +64,8 @@ func (c *KeysCommand) Run(args []string) int { defer client.Close() if listKeys { + c.Ui.Info("Asking all members for installed keys...") + var keys map[string]int var numNodes int var messages map[string]string