Skip to content
Simple templating CLI
Branch: master
Clone or download
Latest commit 60740c7 Oct 5, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/templatectl Add templatectl Oct 2, 2019
internal/template internal/template: add check for non-defined environment variables Oct 2, 2019
.gitignore Add templatectl Oct 2, 2019
LICENSE Create LICENSE Oct 5, 2019 Update installation process Oct 2, 2019
go.mod Add templatectl Oct 2, 2019


Simple templating CLI


GO111MODULE=on go get


# 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
You can’t perform that action at this time.