1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Can add and merge append to null

This commit is contained in:
Mike Farah
2021-01-18 13:58:46 +11:00
parent 1be3b31bbc
commit c77001f969
4 changed files with 34 additions and 1 deletions

View File

@@ -209,3 +209,15 @@ will output
a: 4
```
## Add to null
Adding to null simply returns the rhs
Running
```bash
yq eval --null-input 'null + "cat"'
```
will output
```yaml
cat
```