semverx is a bash script that relies on semver
to provide additional semver functionalities.
git clone --recurse-submodules https://github.com/iamgio/semverx ~/.local/share/semverx
chmod +x ~/.local/share/semverx/semverx.sh
ln -s "~/.local/share/semverx/semverx.sh" /usr/local/bin/semverxbump-tag bumps the latest git tag according to semver rules.
semverx bump-tag [major|minor|patch]Example:
# Current git tag is v1.2.3
semverx bump-tag minor # Output: v1.3.0By default, the result is printed to stdout only. You can use --tag to automatically create a new tag, and --push to push it to the remote.
semverx bump-tag patch --tag --pushBy default, only tags starting with v are considered. You can change this behavior
via --prefix. The prefix is removed before bumping and re-added to the output.
semverx bump-tag patch --prefix "" # Consider all tags