diff --git a/cmd/root.go b/cmd/root.go index cfbca0e..a837216 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -42,7 +42,10 @@ var versionCmd = &cobra.Command{ Use: "version", Short: "Print the version information", Run: func(cmd *cobra.Command, args []string) { - fmt.Printf("grokkit version %s (commit %s)\\n", version.Version, version.Commit) + _, err := fmt.Fprintf(os.Stdout, "grokkit version %s (commit %s)\n", version.Version, version.Commit) + if err != nil { + return + } }, }