1
0
Fork 0
mirror of https://github.com/Luzifer/vercmp.git synced 2024-12-22 19:01:16 +00:00
Port of Archlinux vercmp utility for other OS
Find a file
2020-07-06 23:29:16 +02:00
.gitignore Initial version 2020-07-06 23:22:49 +02:00
.repo-runner.yaml Add publishing 2020-07-06 23:27:15 +02:00
go.mod Initial version 2020-07-06 23:22:49 +02:00
go.sum Initial version 2020-07-06 23:22:49 +02:00
History.md prepare release v1.0.0 2020-07-06 23:29:16 +02:00
LICENSE Initial version 2020-07-06 23:22:49 +02:00
main.go Initial version 2020-07-06 23:22:49 +02:00
Makefile Add publishing 2020-07-06 23:27:15 +02:00
README.md Initial version 2020-07-06 23:22:49 +02:00

Go Report Card

Luzifer / vercmp

vercmp resembles vercmp utility from Archlinux with two small differences: It runs on systems without libalpm.so and it strictly uses SemVer - otherwise it should be fully interchangeable.

Usage

# vercmp

Compare version numbers using SemVer version logic

Usage: vercmp <ver1> <ver2>

Output values:
  < 0 : if ver1 < ver2
    0 : if ver1 == ver2
  > 0 : if ver1 > ver2

# vercmp 7.6.0 7.4.1
1