Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

dtan4/teppan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teppan

CLI tool to generate text from template with .env

Usage

Template format is Go's text/template package.

$ teppan [--base64] <template file>

You can try teppan as below:

$ cd $GOPATH/github.com/dtan4/teppan

$ cat sample.tmpl
Hello, my name is {{ .NAME }}.

$ cp .env.sample .env
$ vi .env
$ cat .env
NAME=dtan4

# Embed environment variables
$ teppan sample.tmpl
Hello, my name is dtan4.

# Embed Base64-encoded environment variables
$ teppan --base64 sample.tmpl
Hello, my name is ZHRhbjQ=.

Author

Daisuke Fujita (@dtan4)

About

CLI tool to generate text from template with .env

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages