Skip to content

Commit

Permalink
Updates to change version output
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitch Anderson committed Dec 2, 2017
1 parent 413216c commit 66a0950
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 66a0950

Please sign in to comment.