summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-21 15:48:13 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-21 15:48:13 +0200
commiteed2d215d1a42441ea98535c50850e2f03306157 (patch)
tree1efb337599c92baa8966960d66d1e8b73fe1832a /shell
parent4788e56dae6f6c1367084c064e62eb1b86d5583f (diff)
parent035517c997830a3421efc823e5687a3519880c19 (diff)
downloadrules-cc-eed2d215d1a42441ea98535c50850e2f03306157.tar.gz
Merge branch 'just-rules' into rules
Diffstat (limited to 'shell')
-rw-r--r--shell/EXPRESSIONS15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/EXPRESSIONS b/shell/EXPRESSIONS
index 6ab6c7c..722e897 100644
--- a/shell/EXPRESSIONS
+++ b/shell/EXPRESSIONS
@@ -84,4 +84,19 @@
, "body": {"type": "var", "name": "sh"}
}
}
+, "PATH":
+ { "vars": ["fieldname", "defaults-transition"]
+ , "imports": {"list_provider": ["./", "..", "field_list_provider"]}
+ , "expression":
+ { "type": "let*"
+ , "bindings":
+ [ [ "fieldname"
+ , {"type": "var", "name": "fieldname", "default": "defaults"}
+ ]
+ , ["provider", "PATH"]
+ , ["transition", {"type": "var", "name": "defaults-transition"}]
+ ]
+ , "body": {"type": "CALL_EXPRESSION", "name": "list_provider"}
+ }
+ }
}