Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 421 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 421 Bytes

templatectl

Simple templating CLI

Install

GO111MODULE=on go get github.com/fatih/templatectl/cmd/templatectl@latest

Usage

# By default templatectl prints to stdout
echo 'This is {{ env "ENV_FOO" }}' > input.tmpl
export ENV_FOO="foo"
$ templatectl --input input.tmpl
This is foo

# Or output to a file
$ templatectl --input input.tmpl --output templated.txt
$ cat templated.txt
This is foo