Categorygithub.com/wesleimp/bump-version
repositorypackage
0.1.0
Repository: https://github.com/wesleimp/bump-version.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

bump-version

Bump a given semantic version, following a given version fragment.

Install

manually

Download the pre-compiled binaries from the OSS releases page and copy them to the desired location.

deb and rpm packages

Download the .deb or .rpm packages from the OSS releases page and install them with the appropriate tools.

compiling from source

If you just want to build from source, follow these steps:

clone

git clone https://github.com/wesleimp/bump-version
cd bump-version 

dependencies

go mod tidy

For the next steps, you can just run make install to build binaries directly inside /usr/local/bin/ folder. Or just follow the steps below:

build

make build

verify it works

./bin/bump-version -v

Usage

bump-version [options...] <version>

The available options for the fragment flag are [major | feature | bug | alpha | beta | rc]. See some examples:

fragmentversionoutput
major2.11.73.0.0
major2.11.7-alpha33.0.0
feature2.11.72.12.0
feature2.11.7-alpha32.12.0
bug2.11.72.11.8
bug2.11.7-alpha32.11.8
alpha2.11.72.11.7-alpha1
alpha2.11.7-alpha32.11.7-alpha4
beta2.11.72.11.7-beta1
beta2.11.7-alpha32.11.7-beta1
rc2.11.72.11.7-rc1
rc2.11.7-alpha32.11.7-rc1

LICENSE

MIT