Crates.io | incrementor |
lib.rs | incrementor |
version | 0.2.1 |
source | src |
created_at | 2024-04-12 13:23:38.381817 |
updated_at | 2024-04-15 12:36:10.83262 |
description | A simple version bumping tool |
homepage | |
repository | https://github.com/fulljoin-tech/incrementor |
max_upload_size | |
id | 1206321 |
size | 60,607 |
A simple version bumping tool designed to efficiently handle multiple version numbers across various packages, libraries, targets in monorepo setup. The focus lies in the flexibility to define all the necessary files in a configuration file and update them with a user-friendly CLI.
For example:
#incrementor.toml
current_version = "0.1.0"
[files.VERSION]
search = "{current_version}"
replace = "{new_version}"
[files.'package.json']
search = '"version": "{current_version}"'
replace = '"version": "{new_version}"'
[files.'Cargo.toml']
search = 'version = "{current_version}"$'
replace = 'version = "{new_version}"'
Run incrementor to increment the version from 0.1.0
to 0.2.0
incrementor --minor
Incrementor isn't just a version incrementor. It can also automatically generate a commit and tag in Git based on the command-line command and configurations.
cargo install --locked incrementor
incrementor --minor