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

Updated docs

This commit is contained in:
Mike Farah
2020-12-29 22:32:06 +11:00
parent e92180e89d
commit 9509831cff
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ a: frog
```
then
```bash
yq eval 'select(. | documentIndex == 1)' sample.yml
yq eval 'select(documentIndex == 1)' sample.yml
```
will output
```yaml
@@ -42,7 +42,7 @@ a: frog
```
then
```bash
yq eval '.a | ({"match": ., "doc": (. | documentIndex)})' sample.yml
yq eval '.a | ({"match": ., "doc": documentIndex})' sample.yml
```
will output
```yaml

View File

@@ -146,7 +146,7 @@ will output
```
## Pretty print
Set empty (default) quote style, note the usage of `...` to match keys too.
Set empty (default) quote style, note the usage of `...` to match keys too. Note that there is a `--prettyPrint/-P` short flag for this.
Given a sample.yml file of:
```yaml