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.
Reading and Rendering¶
subvars [global options] command [command options] [arguments...]
dirsubcommand lets you render all files in a folder & subfolder, and writes the output to
stdout. you can also set an output folder where rendered files will be saved instead of stdout with
--outflag. The filename will be same. If the folder does not exist it will be created automatically.
subvarsreads the template directly from
- Rendered output will be written to
See the usage example for details.