yq/examples/environment.yq
2024-02-16 10:56:18 +11:00

5 lines
153 B
Plaintext
Executable File

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