Can shebang yq scripts! #1851

This commit is contained in:
Mike Farah
2024-02-16 10:48:07 +11:00
parent 047694546c
commit 86bb90f989
4 changed files with 39 additions and 1 deletions
Regular → Executable
+1
View File
@@ -1,3 +1,4 @@
#!yq
.[] |(
( select(kind == "scalar") | key + "='" + . + "'"),
( select(kind == "seq") | key + "=(" + (map("'" + . + "'") | join(",")) + ")")