No description
Find a file
2025-05-28 02:14:45 +09:00
.github ci: Reserve workflow to dispatch from any branches 2025-05-28 02:14:45 +09:00
docs release: Version 0.10.2 2025-05-27 03:54:00 +09:00
e2e feat: Add new configuration filename 2025-05-18 20:27:59 +09:00
src release: Version 0.10.2 2025-05-27 03:54:00 +09:00
tests feat: sameLengthChars supports multiple chars 2025-05-06 02:32:31 +09:00
.age.toml release: Version 0.10.2 2025-05-27 03:54:00 +09:00
.editorconfig chore: Nim related source is 2-space indent 2025-04-29 05:00:08 +09:00
.env.example chore: Configure taskfile 2025-05-08 03:03:22 +09:00
.gitattributes feat: Initial commit 2024-03-08 03:32:06 +09:00
.gitignore chore: Configure taskfile 2025-05-08 03:03:22 +09:00
.python-version chore: Init env for e2e test using pytest 2024-03-19 00:27:53 +09:00
age.nimble release: Version 0.10.2 2025-05-27 03:54:00 +09:00
aqua-policy.yaml feat: Configure as aqua registry 2025-05-27 00:45:05 +09:00
aqua.yaml feat: Configure as aqua registry 2025-05-27 00:45:05 +09:00
CHANGELOG.md release: Version 0.10.2 2025-05-27 03:54:00 +09:00
lefthook.yaml chore(deps): update dependency attakei/workspace-configs to v0.4.0 2025-05-24 21:28:28 +00:00
LICENSE chore: Add items 2024-03-08 03:34:02 +09:00
pyproject.toml release: Version 0.10.2 2025-05-27 03:54:00 +09:00
README.md docs: Add about aqua registry 2025-05-27 02:34:22 +09:00
registry.yaml feat(aqua): Fix file paths of old version 2025-05-27 00:54:52 +09:00
renovate.json5 chore: Control deps about workspace-configs 2025-05-18 20:49:19 +09:00
Taskfile.yaml release: Version 0.10.2 2025-05-27 03:54:00 +09:00
uv.lock release: Version 0.10.2 2025-05-27 03:54:00 +09:00

age

age is my bumpversion tool.

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

nimble install age

You can also from these:

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.

  • update accepts any semver.
  • major is shortcut to major version updating of semver.
  • minor is shortcut to minor version updating of semver.
  • patch is shortcut to patch version updating of semver.

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.

  • path: File path of cwd.
  • search: Replace target line.
  • replace: Replaced text for target.

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.

  • current_version: Version text before run command.
  • new_version: New version text after run command.
  • now: Date time text when context is created (as ISO 8601 format string).