A tool for generating parameterized files from templates.
Binary downloads can be found on releases page.
Or install it manually:
go get github.com/tinrab/tmpl/cmd/tmpl
Example:
$ tmpl -p "./test/simple/*.params.*" -s ./test/simple/deployment.tmpl.yaml -t
Help:
A tool for generating parameterized files from templates
Usage:
tmpl [flags]
tmpl [command]
Available Commands:
help Help about any command
version Print version
Flags:
--consul-address string consul address
--consul-token string consul token
-d, --delimiter string template delimiter (default "\n")
-h, --help help for tmpl
-o, --output string output file path (default "tmpl.out")
-p, --parameters string path to parameters
-s, --source string path to sources
-t, --test print result to stdout
Use "tmpl [command] --help" for more information about a command.