semver-util-0.2.1 is not a library.
semver-util
Getting Started
$ cargo install semver-util
$ semver --help
Usage: semver <COMMAND>
Commands:
cmp Compare ordinality of two versions
seq Generate a sequence of versions
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help information
Comparing Versions
Use the cmp
command to check ordinality of two semantic versions. The command will output true
or false
to stdout
. The process exit code is also set to 1
for commands that output false
.
Comparing versions in another shell script
#!/usr/bin/env bash
&& ||
Generate Version Sequences
Minor Version Sequence