Categorygithub.com/elgohr/semv
modulepackage
0.0.3
Repository: https://github.com/elgohr/semv.git
Documentation: pkg.go.dev

# README

semv

semv (pronounce [zɛmpf]) is a command line tool for working with semantic versions (semver).

Test Status Security Status

Installation

Go

go install github.com/elgohr/semv@latest

Binaries

Find the binaries in the releases.

Usage

Increment

Returns the incremented version.

With the version as a variable

semv increment (--patch/--minor/--major) ${currentVersion}

Piped from another command

cat oldVersion.txt | semv increment (--patch/--minor/--major)

Compare

semv compare ${firstVersion} ${secondVersion}
ResultDescription
-1${firstVersion} is lower than ${secondVersion}
0${firstVersion} is equal than ${secondVersion}
1${firstVersion} is higher than ${secondVersion}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache 2.0

# Packages

No description provided by the author