Skip to content

Commit f34dd1b

Browse files
committed
Fix #12
1 parent 3352978 commit f34dd1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func init() {
4848
rootCmd.AddCommand(updateCmd)
4949
rootCmd.AddCommand(updateDbCmd)
5050

51-
rootCmd.SetVersionTemplate("WPProbe version {{.utils.Version}}\n")
51+
rootCmd.SetVersionTemplate("WPProbe version {{.Version}}\n")
5252

5353
rootCmd.SilenceErrors = true
5454

@@ -57,6 +57,7 @@ func init() {
5757
utils.DefaultLogger.Error(err.Error())
5858
return err
5959
})
60+
6061
rootCmd.PersistentPreRunE = func(cmd *cobra.Command, args []string) error {
6162
if cmd.Parent() == nil {
6263
utils.DefaultLogger.Error("Unknown command: " + cmd.Name())

0 commit comments

Comments
 (0)