go(version): switch from log to fmt for printing
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-06-09 23:47:05 +02:00
parent e2b327932e
commit c94b671d9d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -4,7 +4,7 @@
package cmd
import (
"log"
"fmt"
"os"
"github.com/spf13/cobra"
@ -21,7 +21,7 @@
Short: "Print version information and exit",
Long: `All software has versions. This is ` + appName + `'s`,
RunE: func(cmd *cobra.Command, args []string) error {
log.Println(getVersion())
fmt.Fprintln(os.Stderr, getVersion())
return nil
},
PersistentPostRun: func(cmd *cobra.Command, args []string) {