Skip to content

Commit

Permalink
Merge pull request #37 from harakeishi/fix/echo-version-2
Browse files Browse the repository at this point in the history
fix echo version
  • Loading branch information
harakeishi committed Feb 26, 2022
2 parents 4c28af8 + 5dfd3ca commit 37ab9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var rootCmd = &cobra.Command{
return nil
}
if buildInfo, ok := debug.ReadBuildInfo(); ok {
fmt.Printf("%+v\n", buildInfo.Main)
fmt.Println(buildInfo.Main.Version)
return nil
}
fmt.Println("unknown")
Expand Down

0 comments on commit 37ab9cf

Please sign in to comment.