mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-13 22:38:04 +00:00
5 lines
153 B
Plaintext
Executable File
5 lines
153 B
Plaintext
Executable File
#! yq
|
|
.[] |(
|
|
( select(kind == "scalar") | key + "='" + . + "'"),
|
|
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")
|
|
) |