diff --git a/cmd/cmd.go b/cmd/cmd.go index ace120a84..f5629a64d 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -1,6 +1,7 @@ package commands import ( + "fmt" "os" "github.com/spf13/cobra" @@ -146,5 +147,5 @@ func logError(err error) { func cliVersion() string { v, _ := version.GetVersionMessage() - return v + return fmt.Sprintln(v) }