feat: Add support for env vars in templates

This commit is contained in:
Ross Smith II 2021-06-06 10:37:14 -07:00
parent 5adb486727
commit 73af421667
No known key found for this signature in database
GPG Key ID: A05F962FB6A849D2
1 changed files with 3 additions and 0 deletions

3
yadm
View File

@ -409,6 +409,9 @@ function replace_vars() {
for (label in c) {
gsub(("{{" blank "*yadm\\." label blank "*}}"), c[label])
}
for (label in ENVIRON) {
gsub(("{{" blank "*env\\." label blank "*}}"), ENVIRON[label])
}
}
function conditions() {
pattern = ifs blank "+("