mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Added sample yq script
This commit is contained in:
parent
dd64899434
commit
eff7d99e2b
4
examples/environment.yq
Normal file
4
examples/environment.yq
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
.[] |(
|
||||||
|
( select(kind == "scalar") | key + "='" + . + "'"),
|
||||||
|
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user