/version

Update semantic version numbers in git repos using tags.

Primary LanguageGoOtherNOASSERTION

Version

$ export PATH="$GOPATH/bin:${PATH}"
$ go get github.com/smartystreets/version/cmd/version
$ version -help
Usage of version:

  cd to a git repository you'd like to version and run one of the following commands:

  version major
    (updates 'major' version number: 1.2.3 -> 2.0.0)
  version minor
    (updates 'minor' version number: 1.2.3 -> 1.3.0)
  version patch
    (updates 'patch' version number: 1.2.3 -> 1.2.4)