Added multiple object example from PR #1226

This commit is contained in:
Mike Farah
2022-05-27 11:22:10 +10:00
parent 294da55012
commit 439bcaad25
2 changed files with 20 additions and 0 deletions
@@ -86,3 +86,16 @@ will output
wrap: frog
```
## Creating yaml from scratch with multiple objects
Running
```bash
yq --null-input '(.a.b = "foo") | (.d.e = "bar")'
```
will output
```yaml
a:
b: foo
d:
e: bar
```