/gotmpl

Template processor using the Go text template syntax

Primary LanguageGoMIT LicenseMIT

Gotmpl

Template processor using the Go language text template syntax.

Usage: gotmpl [options]
Options:
  -h, --help                   Show help
  -o, --output string          Output file (required)
  -s, --settings stringArray   Settings, can be repeated        
  -t, --template string        Template file (required)
  -v, --verbose                Log diagnostic messages to stdout

Settings can be any of:

  • An environment file (ie contains lines in the format KEY=VALUE)
  • A reference to AWS SSM Parameters in the format ssm:/path

When there are multiple settings, the subsequent settings can use values defined previously.

eg: -s /etc/defaults/myservice -s ssm:/myservice/{{.ENVIRONMENT}}