Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ericpfisher/tmplhate

Repository files navigation

tmplhate

Let the .tmpl hate flow through you...

This was a "reinvent the wheel" project. Heavily inspired by the wonderful tool Gomplate.

Usage

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 info

tmplhate can also read from STDIN:

export NAME=GitHub
❯ echo 'Hi {{ .Env.NAME }}' | go run main.go
Hi GitHub

Make sure you observe the licenses of libraries included in this project, too.

About

Let the .tmpl hate flow through you...

Resources

License

Stars

Watchers

Forks

Packages