Docs for 4.16.1

This commit is contained in:
Mike Farah
2021-12-04 14:08:16 +11:00
parent 3e0e2c83ed
commit 1468c37e0b
7 changed files with 369 additions and 78 deletions
+16
View File
@@ -196,6 +196,22 @@ will output
{a: {b: bogs}}
```
## Update node value that has an anchor
Anchor will remaple
Given a sample.yml file of:
```yaml
a: &cool cat
```
then
```bash
yq eval '.a = "dog"' sample.yml
```
will output
```yaml
a: &cool dog
```
## Update empty object and array
Given a sample.yml file of:
```yaml