Added multiple object example from PR #1226

This commit is contained in:
Mike Farah 2022-05-27 11:22:29 +10:00
parent deb7aeb966
commit b52d86e468

View File

@ -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
```