mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
4 lines
147 B
Plaintext
4 lines
147 B
Plaintext
.[] |(
|
|
( select(kind == "scalar") | key + "='" + . + "'"),
|
|
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")
|
|
) |