go(version): switch from log to fmt for printing
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e2b327932e
commit
c94b671d9d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue