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.

Project Activity

See All Activity >

License

MIT License

Follow SubVars

SubVars Web Site

You Might Also Like
Create and run cloud-based virtual machines. Icon
Create and run cloud-based virtual machines.

Secure and customizable compute service that lets you create and run virtual machines on Google’s infrastructure.

Computing infrastructure in predefined or custom machine sizes to accelerate your cloud transformation. General purpose (E2, N1, N2, N2D) machines provide a good balance of price and performance. Compute optimized (C2) machines offer high-end vCPU performance for compute-intensive workloads. Memory optimized (M2) machines offer the highest memory and are great for in-memory databases. Accelerator optimized (A2) machines are based on the A100 GPU, for very demanding applications.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of SubVars!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Registered

2021-07-14