diff --git a/.goreleaser.yml b/.goreleaser.yml index de7b051..d58f4ec 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -16,7 +16,7 @@ checksum: # - Tag # - Version (Git tag without `v` prefix) # Default is `{{ .ProjectName }}_{{ .Version }}_checksums.txt`. - name_template: "{{ .ProjectName }}_checksums.txt" + #name_template: "{{ .ProjectName }}_checksums.txt" brew: github: owner: undeadops diff --git a/main.go b/main.go index dcb05d2..246e759 100644 --- a/main.go +++ b/main.go @@ -13,11 +13,18 @@ var ( awsFilterName string awsFilterTags string verbose bool - version = "master" - buildDate string ) +// Capture Build information +var version string +var date string +var commit string + func main() { + cli.VersionPrinter = func(c *cli.Context) { + fmt.Printf("version=%s date=%s commit=%s\n", version, date, commit) + } + app := cli.NewApp() app.Flags = []cli.Flag{