mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-09-13 14:59:09 +00:00
Use goreleaser version if available, otherwise buildinfo
This commit is contained in:
parent
b269e8538d
commit
b48f3274e6
3 changed files with 48 additions and 6 deletions
5
main.go
5
main.go
|
@ -1,13 +1,10 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/carlmjohnson/versioninfo"
|
||||
"github.com/passbolt/go-passbolt-cli/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
cmd.SetVersionInfo(versioninfo.Version, versioninfo.Revision, versioninfo.LastCommit.Format(time.RFC3339))
|
||||
cmd.SetVersionInfo(version, commit, date, dirty)
|
||||
cmd.Execute()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue