Fixing op precedences

This commit is contained in:
Mike Farah
2021-02-04 12:18:54 +11:00
parent 35c97e832e
commit 07b053f040
6 changed files with 41 additions and 28 deletions
+11
View File
@@ -79,3 +79,14 @@ then
yq eval '.a.[] | select(. == "*og") | [{"path":path, "value":.}]' sample.yml
```
will output
```yaml
- path:
- a
- 1
value: dog
- path:
- a
- 2
value: frog
```