Skip to content

christianang/semver-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

semver-cli

Small cli to compare semvers written in go

Install

go get github.com/christianang/semver-cli/semver

Usage

Comparing two semvers:

$ semver compare 1.2.3 2.3.4
-1

semver compare:

  • returns a 0 if the two semvers are equal
  • returns a 1 if the first semver is greater than the second semver
  • returns a -1 if the first semver is less than the second semver

About

Small cli to compare semvers written in go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages