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

More scenarios

This commit is contained in:
Mike Farah
2020-12-27 23:00:46 +11:00
parent 6cc6fdf322
commit 9e9e15df73
2 changed files with 35 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ b: *cat
```
then
```bash
yq eval '.b.[]' sample.yml
yq eval '.b[]' sample.yml
```
will output
```yaml
@@ -290,7 +290,7 @@ foobar:
```
then
```bash
yq eval '.foobar.[]' sample.yml
yq eval '.foobar[]' sample.yml
```
will output
```yaml
@@ -356,7 +356,7 @@ foobar:
```
then
```bash
yq eval '.foobarList.[]' sample.yml
yq eval '.foobarList[]' sample.yml
```
will output
```yaml