verG is a semantic versioning CLI.
Use homebrews to install verG.
brew tap trendyol/trendyol-tap
brew install verg
Use go module to install verG.
go get github.com/trendyol/verg
verg 1.0.0 --major
--> 2.0.0
This flag increment to major version.
verg 1.0.0 --major
--> 2.0.0
This flag increment to minor version.
verg 1.0.0 --minor
--> 1.1.0
This flag increment to patch version.
verg 1.0.0 --patch
--> 1.0.1
This flag increment to release version.
verg 1.0.0 -r
--> 1.0.0-RELEASE.0
This flag increment to beta version.
verg 1.0.0 -b
--> 1.0.0-BETA.0
This flag increment to alpha version.
verg 1.0.0 -a
--> 1.0.0-ALPHA.0
This command compare to versions. Operators: [==] [>=] [<=] [>] [<]
verge compare "1.0.0 == 1.0.0"
--> true
verge compare "1.0.0 > 1.0.1"
--> false