#semver #versioning #semantic #command-line-tool #pkgx

app semverator

A command line tool for working with semantic versioning (libpkgx implementation)

13 unstable releases (4 breaking)

0.5.1 Mar 18, 2024
0.5.0 Mar 18, 2024
0.4.3 Sep 10, 2023
0.3.1 Apr 8, 2023
0.1.2 Jan 29, 2023

#244 in Command line utilities

Download history 1/week @ 2024-02-22 1/week @ 2024-02-29 195/week @ 2024-03-07 243/week @ 2024-03-14 41/week @ 2024-03-21 16/week @ 2024-03-28 3/week @ 2024-04-04

76 downloads per month

Apache-2.0

35KB
892 lines

GitHub release (latest by date) Test with Code Coverage Check and Lint Coverage Status

semverator

Pure rust implementation of libpkgx:utils/semver.ts for command-line usage.

Install

cargo install semverator or, for pkgx users, pkgx +crates.io/semverator.

Usage

Well, thanks to clap, the help system flows nicely from the implementation:

A command line tool for working with semantic versioning (libpkgx implementation)

Usage: semverator <COMMAND>

Commands:
  validate        validates a version
  eq              checks if two versions are equal
  neq             checks if two versions are not equal
  gt              checks if left > right
  lt              checks if left < right
  validate-range  validates a range
  satisfies       validates a range satisfies a semver
  max             maximum version that satisifies a range
  intersect       intersection between two ranges
  help            Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Dependencies

~3–4.5MB
~71K SLoC