yq/examples/environment.yq

5 lines
153 B
Plaintext
Raw Normal View History

2024-02-15 23:56:18 +00:00
#! yq
2023-12-12 02:08:18 +00:00
.[] |(
( select(kind == "scalar") | key + "='" + . + "'"),
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")
)