Added sample yq script

This commit is contained in:
Mike Farah 2023-12-12 13:08:18 +11:00
parent dd64899434
commit eff7d99e2b
1 changed files with 4 additions and 0 deletions

4
examples/environment.yq Normal file
View File

@ -0,0 +1,4 @@
.[] |(
( select(kind == "scalar") | key + "='" + . + "'"),
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")
)