13 个不稳定版本 (4 个重大变更)
| 0.5.1 | 2024年3月18日 | 
|---|---|
| 0.5.0 | 2024年3月18日 | 
| 0.4.3 | 2023年9月10日 | 
| 0.3.1 | 2023年4月8日 | 
| 0.1.2 | 2023年1月29日 | 
#254 in 命令行工具
35KB
892 代码行
semverator
纯 Rust 实现的 libpkgx:utils/semver.ts,用于命令行使用。
安装
cargo install semverator 或,对于 pkgx 用户,pkgx +crates.io/semverator.
用法
由于使用了 clap,帮助系统从实现中流畅地流出
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
依赖项
~3–4.5MB
~71K SLoC