semv

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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}
Result Description
-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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL