vercmp

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Unlicense Imports: 5 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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