Simplified yq usage

This commit is contained in:
Mike Farah
2022-01-28 12:50:13 +11:00
parent 9896245f71
commit 2e3f5e410e
10 changed files with 48 additions and 46 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ apples:
Then:
```
yq e -I4 sample.yaml
yq -I4 sample.yaml
```
Will print out:
@@ -53,7 +53,7 @@ apples:
This also works with json
```
yq e -j -I4 sample.yaml
yq -j -I4 sample.yaml
```
yields
@@ -86,7 +86,7 @@ a: "Things" # cool stuff
Then:
`yq e --unwrapScalar=false '.a' data.yml`
`yq --unwrapScalar=false '.a' data.yml`
Will yield: