builder: lib: subscript.py: add resolve_simple_values

Signed-off-by: BigfootACA <bigfoot@classfun.cn>
This commit is contained in:
BigfootACA 2024-05-24 00:33:17 +08:00
parent 7ad662ab28
commit e49f667db9

View File

@ -39,6 +39,13 @@ def dict_get(key: str, root: dict):
return node
def resolve_simple_values(original: str, values: dict) -> str:
value = str(original)
for key in values:
value = value.replace(f"${key}", values[key])
return value
class SubScript:
root: dict
resolved: list[str]