incrementor

Crates.ioincrementor
lib.rsincrementor
version0.2.1
sourcesrc
created_at2024-04-12 13:23:38.381817
updated_at2024-04-15 12:36:10.83262
descriptionA simple version bumping tool
homepage
repositoryhttps://github.com/fulljoin-tech/incrementor
max_upload_size
id1206321
size60,607
Robert den Harink (rharink)

documentation

README

Incrementor

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

Git Commit & Tag

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.

Installation

cargo install --locked incrementor

Usage

incrementor --minor 
Commit count: 11

cargo fmt