Skip to content

iamgio/semverx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semverx

semverx is a bash script that relies on semver to provide additional semver functionalities.

Installation

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/semverx

Features

Bump Git tag

bump-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.0

By 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 --push

By 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

About

🗒️ Utilities for semantic versioning (semver).

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages