Skip to content
Simple templating CLI
Go
Branch: master
Clone or download
Latest commit 60740c7 Oct 5, 2019
Permalink
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
README.md Update installation process Oct 2, 2019
go.mod Add templatectl Oct 2, 2019

README.md

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