libsemverator

Crates.iolibsemverator
lib.rslibsemverator
version0.6.0
sourcesrc
created_at2024-09-06 20:09:10.327135
updated_at2024-09-06 20:09:10.327135
descriptionA library for working with semantic versioning (libpkgx implementation)
homepagehttps://github.com/jhheider/semverator
repositoryhttps://github.com/jhheider/semverator
max_upload_size
id1366428
size26,650
Jacob Heider (jhheider)

documentation

README

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
Commit count: 33

cargo fmt