mirror of
https://github.com/mikefarah/yq.git
synced 2025-03-15 16:37:46 +00:00
Update JSON to YAML example for new JSON input output default (#1875)
This commit is contained in:
parent
998b4edb34
commit
eecc106529
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user