Let the .tmpl hate flow through you...
This was a "reinvent the wheel" project. Heavily inspired by the wonderful tool Gomplate.
tmplhate uses cobra under the hood to provide CLI functionality.
As with most Go applications, run it with go run main.go:
❯ go run main.go --help
Tool to generate .tmpls from values.
Usage:
tmplhate [flags]
Flags:
--config string config file (default is $HOME/.tmplhate.yaml)
-h, --help help for tmplhate
-t, --tmpl string .tmpl location
-l, --values string values location
-v, --version print version infotmplhate can also read from STDIN:
❯ export NAME=GitHub
❯ echo 'Hi {{ .Env.NAME }}' | go run main.go
Hi GitHubMake sure you observe the licenses of libraries included in this project, too.