Crates.io | vers-cli |
lib.rs | vers-cli |
version | 0.1.0 |
source | src |
created_at | 2024-05-04 23:24:40.091204 |
updated_at | 2024-05-04 23:24:40.091204 |
description | Simple CLI tools for bumping and parsing version numbers |
homepage | |
repository | https://github.com/PanieriLorenzo/vers-cli |
max_upload_size | |
id | 1229896 |
size | 85,282 |
Simple CLI tools for bumping and parsing version numbers
vers-cli 0.1.0 | vers-cli bump patch
# -> 0.1.1
# understands "v" prefix
vers-cli v1.0.0 | vers-cli bump major | vers-cli bump patch
# -> v2.0.1
# understands (some) pre-releases
vers-cli v1.0.0-rc.1 | vers-cli release
# -> v1.0.0
vers-cli v1.0.0-rc.1 | vers-cli bump rc
# -> v1.0.0-rc.2
# invariant over metadata
vers-cli v1.0.0-rc.1+500 | vers-cli release
# -> v1.0.0+500
# can bump metadata
vers-cli v1.0.0+500 | vers-cli bump build
# -> v1.0.0+501
# linting
vers-cli 01.0.0 --lint
# -> error: leading zeros not allowed
# -> hint: use `1.0.0` instead