diff --git a/commands/output.go b/commands/output.go index 9397f09..4ea6b66 100644 --- a/commands/output.go +++ b/commands/output.go @@ -30,8 +30,6 @@ func (c *Cmd) OutputJSON(v interface{}, prettyFlag bool) error { return err } - fmt.Fprintf(c.Out, string(jsonRaw)) - jsonStr := string(jsonRaw) if strings.HasSuffix(jsonStr, "\n") { fmt.Fprintf(c.Out, jsonStr) diff --git a/main.go b/main.go index 6748d73..e6e079a 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ import ( ) const Name = "consul-cli" -const Version = "0.3.0" +const Version = "0.3.1" func main() { log.SetOutput(ioutil.Discard)