From 0c9ead6652ace4b32c77de8a7d8336b0add948fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Mon, 20 Nov 2023 23:24:45 +0200 Subject: [PATCH] Update JSON to YAML example for new JSON input output default --- cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index 441d72a6..dcf0e4ef 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -24,7 +24,7 @@ yq '.stuff' < myfile.yml yq -i '.stuff = "foo"' myfile.yml # print contents of sample.json as idiomatic YAML -yq -P sample.json +yq -P -oy sample.json `, RunE: func(cmd *cobra.Command, args []string) error {