Skip to content

Commit

Permalink
goreleaser inject buildinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed May 1, 2024
1 parent a365a98 commit 8cd6b2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func init() {

cobra.OnInitialize(func() {
if printVersion {
buildinfo.PrintInfos()
buildinfo.Print()
os.Exit(0)
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ var versionCmd = &cobra.Command{
Short: "Print version infos",
Long: `Extract and display the running binaries embedded version information.`,
Run: func(cmd *cobra.Command, args []string) {
buildinfo.PrintInfos()
buildinfo.Print()
},
}

0 comments on commit 8cd6b2a

Please sign in to comment.