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

Fixed boolean ops

This commit is contained in:
Mike Farah
2020-11-20 15:29:53 +11:00
parent bc87aca8d7
commit f03005f86d
3 changed files with 41 additions and 22 deletions

View File

@@ -6,7 +6,7 @@ Which will assign the LHS node values to the RHS node values. The RHS expression
### relative form: `|=`
This will do a similar thing to the plain form, however, the RHS expression is run against _the LHS nodes_. This is useful for updating values based on old values, e.g. increment.
## Examples
### Update parent to be the child value
### Update node to be the child value
Given a sample.yml file of:
```yaml
a:
@@ -23,7 +23,7 @@ a:
g: foof
```
### Update to be the sibling value
### Update node to be the sibling value
Given a sample.yml file of:
```yaml
a: