Can add and merge append to null

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 1be3b31bbc
commit c77001f969
4 changed files with 34 additions and 1 deletions
+12
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
```