fixed tests

This commit is contained in:
Mike Farah
2021-11-30 13:16:35 +11:00
parent bb0e6fb857
commit d80054dcc6
2 changed files with 10 additions and 9 deletions
+1 -8
View File
@@ -91,21 +91,14 @@ Given a sample.yml file of:
a: 1
b: 2
```
And another sample another.yml file of:
```yaml
c: 1
d: 2
```
then
```bash
yq eval-all 'with_entries(.key |= "KEY_" + .)' sample.yml another.yml
yq eval 'with_entries(.key |= "KEY_" + .)' sample.yml
```
will output
```yaml
KEY_a: 1
KEY_b: 2
KEY_c: 1
KEY_d: 2
```
## Use with_entries to filter the map