diff --git a/cmd/version.go b/cmd/version.go index 10005a35b..d317b34d9 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -56,7 +56,7 @@ var versionCmd = &cobra.Command{ if short { fmt.Println(clientVersion.GitVersion) } else { - fmt.Println(fmt.Sprintf("%#v", clientVersion)) + fmt.Printf("%#v\n", clientVersion) } case "yaml": marshalled, err := yaml.Marshal(&versionInfo)