bash-templater
bash-templater copied to clipboard
Very simple templating system that replace {{VAR}} by $VAR environment value, supports defines
* Merged with https://github.com/lavoiesl/bash-templater (Please review the conflict merge stage) * Improved UX * Added undefined variable guard
Both `template.sh path/to/template.txt -s` and `template.sh -s path/to/template.txt` should be valid.
Like `set -o nounset` in Bash, we need an option to prevent from using undefined variables. This is useful when we batch process a directory of templates. When configuration file...
add an option replace variable in place (e.g. before building a docker image on ci)
When using default values, the script printed a warning for each default value: "... is not defined and no default is set, replacing by empty". Also when using the -p...