Skip to content

Add a version command#18

Merged
zefhemel merged 1 commit intomasterfrom
include-version
Apr 19, 2018
Merged

Add a version command#18
zefhemel merged 1 commit intomasterfrom
include-version

Conversation

@romanlevin
Copy link
Copy Markdown
Contributor

Prints the value of main.version. It is dev by default, but
overriden by goreleaser with the tag name.

To try this out without goreleaser:

$ go install -ldflags "-X main.version=foo" github.com/egnyte/ax/cmd/ax
$ ax version
foo

Prints the value of `main.version`. It is `dev` by default, but
overriden by `goreleaser` with the tag name.

To try this out without `goreleaser`:
```
$ go install -ldflags "-X main.version=foo" github.com/egnyte/ax/cmd/ax
$ ax version
foo
```
@zefhemel zefhemel merged commit 47750ad into master Apr 19, 2018
@romanlevin romanlevin deleted the include-version branch April 19, 2018 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants