bump
bump copied to clipboard
CLI to bump version tag in a git repository following semver
bump
Command-line to bump version in a git repository
Install
Snap
$ 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