mirror of
https://github.com/mikefarah/yq.git
synced 2026-08-24 00:04:50 +08:00
Can shebang yq scripts! #1851
This commit is contained in:
Regular → Executable
+1
@@ -1,3 +1,4 @@
|
||||
#!yq
|
||||
.[] |(
|
||||
( select(kind == "scalar") | key + "='" + . + "'"),
|
||||
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")
|
||||
|
||||
Reference in New Issue
Block a user