attakei / age-cli

Alt bumpversion
https://age.attakei.dev
Apache License 2.0
2 stars 0 forks source link
bumpversion hacktoberfest rust-lang version-manager versioning

age

age is my bumpversion tool (for training Rust programming).

GitHub Tag CI jobs

Overview

This is faster bump-version tools inspired by bumpversion and inherits. age is a meaning that logging lib's birthday and "Up" in Japanese slang.

Installation

cargo install --git https://github.com/attakei/age-cli.git

There are pre-build binaries on GitHub releases. You can download and use it directly without Rust environment.

Usage

At first, you must generate configuration file -- .age.toml. You should edit it for your current version, because generated file is set current_version = "0.0.0".

age init

If you want to up next version, run age update|major|minor|patch.

Example:

# If current_version = "1.2.3"
> age major  # Update to 2.0.0
> age minor  # Update to 1.3.0
> age patch  # Update to 1.2.4

Configuration file

current_version

Version value that age manages.

files

List of replace target for update versioning.

Templating context

Age uses template-engine to search and replace targets. You can set context values into files.search and files.replace.

If you want to know example, please see .age.toml.

Context values.