Update JSON to YAML example for new JSON input output default

This commit is contained in:
Ville Skyttä 2023-11-20 23:24:45 +02:00
parent 1cf9ecc79d
commit 0c9ead6652

View File

@ -24,7 +24,7 @@ yq '.stuff' < myfile.yml
yq -i '.stuff = "foo"' myfile.yml yq -i '.stuff = "foo"' myfile.yml
# print contents of sample.json as idiomatic YAML # 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 { RunE: func(cmd *cobra.Command, args []string) error {