Latest release

This commit is contained in:
Mike Farah
2022-02-15 14:16:04 +11:00
parent 38f40fbcff
commit caf36e39b8
9 changed files with 350 additions and 19 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ a: frog
```
then
```bash
yq '.a | documentIndex' sample.yml
yq '.a | document_index' sample.yml
```
will output
```yaml
@@ -53,7 +53,7 @@ a: frog
```
then
```bash
yq 'select(documentIndex == 1)' sample.yml
yq 'select(document_index == 1)' sample.yml
```
will output
```yaml
@@ -85,7 +85,7 @@ a: frog
```
then
```bash
yq '.a | ({"match": ., "doc": documentIndex})' sample.yml
yq '.a | ({"match": ., "doc": document_index})' sample.yml
```
will output
```yaml