We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 680f4bd commit b03e3c4Copy full SHA for b03e3c4
docker/replace-var-filter.jq
@@ -0,0 +1,7 @@
1
+def check_value:
2
+.|with_entries(.value = if (.value|type) == "array" then .=(.value|map(.|check_value))
3
+ elif (.value|type) == "object" then .=(.value|check_value)
4
+ elif .value == $var_name then .=$new_value
5
+ else .=.value end);
6
+
7
+.|check_value
0 commit comments