yq/examples/environment.yq
2023-12-12 13:08:18 +11:00

4 lines
147 B
Plaintext

.[] |(
( select(kind == "scalar") | key + "='" + . + "'"),
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")
)