mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-11 09:42:30 +00:00
Add docs for creating YAML with multiple objects
This commit is contained in:
parent
1e27e39927
commit
09ad3f2c10
@ -86,3 +86,16 @@ will output
|
|||||||
wrap: frog
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user