| Crates.io | rtgen |
| lib.rs | rtgen |
| version | 0.1.0 |
| created_at | 2025-03-16 01:23:47.716452+00 |
| updated_at | 2025-03-16 01:23:47.716452+00 |
| description | Template builer/aggregation tool |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1594040 |
| size | 35,983 |
Inspired by Terraform, rtgen is a CLI tool to easily aggregate various files homogenous file types to create a single file. Rather than having an extremely verbose file, due to repeating object definitions, you can create a template, and "compile" to a single file, aggregating small, modularized files, to help make your codebase much more maintainable.
Follow these steps or run the example
main.yaml.greetings:
- "{{ lookup('*') }}"
/greetingsesp.yaml
Hola Mundo!
eng.yaml
Hello World
rtgen -t main.yaml and you should seegreetings:
- Hola Mundo!
- Hello World
Run make run-example-yaml to how examples/main.yaml is used as a template, and creates the output seen in output.yaml
See the docs for more info