Configuration

You need setup age’s configuration on your project.

First setup

After install, you can get configuration file as .age.toml by running command age init.

Simple Rust project
age init
For Python project
age init --preset python

If you want to using sample, Please see configuration file of project itself.

Configuration values

current_version

Version text managed by age.

Warning

This is auto-updated value by age. Do not edit manually.

files

List of target to replace by age.

Simple example
[[files]]
path = "Cargo.toml"
search = "version = \"{{current_version}}\""
replace = "version = \"{{new_version}}\""

files[].path

File path of replacement target. This should be relative path of configuration file.

files[].regex

Required:

No

Default:

false

Flag to use regular expression (regex) when searching target.

If it is true, age search target using regex and replace text with captured text.

files[].replace

Replacement text for search target of file. This accepts multi-line text and using templating.