Fixed variable operator to work like jq

This commit is contained in:
Mike Farah
2023-02-28 16:14:42 +11:00
parent 0cd15867d0
commit eb9181670e
9 changed files with 44 additions and 16 deletions
+10 -1
View File
@@ -329,7 +329,16 @@ idPath=".a" originalPath=".myArray" otherPath=".newArray" yq eval-all '
```
will output
```yaml
myArray: []
myArray:
- a: apple
b: appleB2
- a: kiwi
b: kiwiB
- a: banana
b: bananaB
c: bananaC
- a: dingo
c: dingoC
something: else
```