update cli help (#1146)

- remove duplicate comment
- add common use case (json -> idiomatic yml)
This commit is contained in:
justin-f-perez 2022-03-19 18:54:24 -05:00 committed by GitHub
parent 0ffee92175
commit 1a964c5055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@ See https://mikefarah.gitbook.io/yq/ for detailed documentation and examples.`,
cat myfile.yml | yq '.stuff'
# update myfile.yml in place
yq -i '.stuff = "foo"' myfile.yml # update myfile.yml inplace
yq -i '.stuff = "foo"' myfile.yml
# print contents of sample.json as idiomatic YAML
yq -P '.' sample.json
`,
RunE: func(cmd *cobra.Command, args []string) error {