feat: Add support for env vars in templates
This commit is contained in:
parent
5adb486727
commit
73af421667
1 changed files with 3 additions and 0 deletions
3
yadm
3
yadm
|
@ -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 "+("
|
||||
|
|
Loading…
Reference in a new issue