Substitute Variables (subvars) is a small utility which provides a way to render any Go templates from command line recognizing the object being passed in and drawing attributes from the object to create wanted text. It is very useful for template driven configuration files.
It uses sprig v3 for template functions which provides additional functions apart from standard library.
subvars reads input from stdin and renders output to stdout. You can pipe the input or < direct it to subvars.
Options to render all files in a given folder and output to another folder preserving folder and file structure is available via dir subcommand.
License
MIT LicenseFollow SubVars
You Might Also Like
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of SubVars!