Skip to content

Commit

Permalink
fix version command
Browse files Browse the repository at this point in the history
  • Loading branch information
brianstrauch committed Jul 21, 2021
1 parent 7ea8dfc commit def54fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

// version is a linker flag set by goreleaser
var version = "v0.0.0"
var version = "0.0.0"

func main() {
// TODO: https://github.com/spf13/viper/pull/1064
Expand Down Expand Up @@ -58,7 +58,7 @@ func main() {
root.AddCommand(update.NewCommand())

root.SetHelpCommand(&cobra.Command{Hidden: true})
root.SetVersionTemplate("{{.Version}}\n")
root.SetVersionTemplate("v{{.Version}}\n")

_ = root.Execute()
}
Expand Down

0 comments on commit def54fb

Please # to comment.