From 8cd6b2a9f061cb3ea00507f7e095312fe2d4d3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20H=C3=BCbner?= Date: Wed, 1 May 2024 16:31:14 +0200 Subject: [PATCH] goreleaser inject buildinfo --- cmd/root.go | 2 +- cmd/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 9e565ba..4501ab5 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -47,7 +47,7 @@ func init() { cobra.OnInitialize(func() { if printVersion { - buildinfo.PrintInfos() + buildinfo.Print() os.Exit(0) } diff --git a/cmd/version.go b/cmd/version.go index f558473..d14f807 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -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() }, }