Feature/support env hcl and interpolations (#1423)

* support HCL language for env variables

Signed-off-by: xtphate <65117176+XT-Phate@users.noreply.github.com>
This commit is contained in:
xtphate
2024-04-22 08:02:14 +08:00
committed by GitHub
parent b703b5e061
commit a15a1b0731
29 changed files with 1897 additions and 118 deletions
+42
View File
@@ -0,0 +1,42 @@
locals {
localInValues7File = "localInValues7"
}
values {
a = "a"
b = "b"
c = "${hv.a}${hv.b}"
map = {
"a" = "${hv.a}"
}
list = [
hv.b
]
nestedmap = {
submap = {
subsubmap = {
hello = hv.c
}
}
}
ternary = true ? true : false
fromMap = "${hv.map.a}${hv.nestedmap.submap.subsubmap.hello}"
expressionInText = "%{if hv.ternary }yes%{else}no%{endif}"
insideFor = "%{for i in hv.list }${i}%{endfor}"
multi_block = hv.block
crossfile = hv.crossfile_var
localRef = local.localInValues7File
}
values {
block = "block"
}
+3
View File
@@ -0,0 +1,3 @@
values {
crossfile_var = "crossfile var"
}