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 {