guilhem / bump

CLI to bump version tag in a git repository following semver
Apache License 2.0
25 stars 3 forks source link
git hacktoberfest semantic-versioning semver version versioning

bump

GitHub release (latest SemVer) bump

Command-line to bump version in a git repository

Install

Snap

Get it from the Snap Store

$ snap install bump

Homebrew

$ brew install guilhem/homebrew-tap/bump

Go get

$ go get github.com/guilhem/bump

Usage

Help

$ bump --help
Bump version

Usage:
  bump [command]

Available Commands:
  help        Help about any command
  major       Bump major version
  minor       Bump minor
  patch       Bump patch

Flags:
      --allow-dirty     allow usage of bump on dirty git
      --dry-run         Don't touch git repository
  -h, --help            help for bump
      --latest-tag      use latest tag, prompt tags if false (default true)
  -t, --toggle          Help message for toggle

Use "bump [command] --help" for more information about a command.

Major

$ git tag
1.1.1
$ bump major
$ git tag
1.1.1
2.0.0

Minor

$ git tag 
v1.1.1
$ bump minor
$ git tag
v1.1.1
v1.2.0

Patch

$ git tag
1.1.1
$ bump patch
$ git tag
1.1.1
1.1.2