Skip to content

fatih/templatectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple templating CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages