diff --git a/.goreleaser.yml b/.goreleaser.yml index c898526..7ea2293 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -17,6 +17,8 @@ builds: goarm: - 6 - 7 + ldflags: + - -s -w -X main.version={{.Version}} ignore: - goos: windows goarch: arm64 diff --git a/gee.go b/gee.go index 067a620..9f8907c 100644 --- a/gee.go +++ b/gee.go @@ -8,7 +8,8 @@ import ( ) var ( - app *cli.App + app *cli.App + version = "dev" ) var validate *validator.Validate @@ -35,5 +36,5 @@ func init() { app = cli.NewApp() app.Name = "gee" app.Usage = "Gee gives user's control of git commands across repos without moving between them." - app.Version = "1.0.0" + app.Version = version }