Skip to content

Commit eecc106

Browse files
authored
Update JSON to YAML example for new JSON input output default (#1875)
1 parent 998b4ed commit eecc106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ yq '.stuff' < myfile.yml
2424
yq -i '.stuff = "foo"' myfile.yml
2525
2626
# print contents of sample.json as idiomatic YAML
27-
yq -P sample.json
27+
yq -P -oy sample.json
2828
`,
2929

3030
RunE: func(cmd *cobra.Command, args []string) error {

0 commit comments

Comments
 (0)