Releases: AmashOnBlitz/CFGen
CFGen v2.0.0 — Runtime Variables & Dynamic Template Generation
CFGen v2.0.0 🚀
Introducing Runtime Variables & Dynamic Template Generation
📦 Release Overview
CFGen v2.0.0 marks a major milestone with the introduction of Runtime Variables, significantly improving flexibility and developer workflow. This release removes the need to modify global macro registries for one-off or file-specific values, enabling cleaner, safer, and more dynamic template generation.
🚀 What’s New
🔁 Runtime Variables (Major Feature)
Previously, generating files with custom values (such as class names or identifiers) required editing global macros before generation. This approach was error-prone and inconvenient for single-use cases.
With CFGen v2.0.0, you can now pass variables directly at generation time, allowing:
- File-specific customization
- Zero mutation of global macro state
- Cleaner automation and scripting workflows
Runtime variables are parsed before macro resolution and applied only to the current generation cycle.
🔍 Version Checking (Optional & Non-Blocking)
CFGen now supports checking for newer versions available on GitHub.
- Fetches the latest version tag using
curlorwget - Compares versions semantically
- Notifies the user if an update is available
Version checking is not automatic by default. This decision was made intentionally to avoid unnecessary network calls and startup delays during small or repetitive generation tasks. Developers can invoke version checks explicitly when needed.
This keeps CFGen fast and lightweight while still offering update awareness.
🛠️ Developer Details
- Version:
2.0.0 - Core Logic Update:
The generator now parses runtime arguments before macro resolution.
This creates a temporary local macro scope that:- Takes precedence over global macros
- Exists only for the current generation
- Leaves the global registry untouched
This design keeps behavior predictable while unlocking dynamic generation.
✅ Summary
CFGen v2.0.0 transforms template generation from a static, registry-bound process into a flexible, runtime-driven workflow — paving the way for more advanced automation and cleaner project structures.
CFGen v1.0.0 — First Release
Initial release of CFGen
A CLI tool for generating files from registered templates with macro substitution and naming-convention transforms.
Binaries for Windows, Linux, and macOS are available below.