mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 08:35:42 +00:00
Add space before pipe in line operator example
This commit is contained in:
parent
218896d094
commit
5849d09545
@ -29,7 +29,7 @@ b:
|
||||
```
|
||||
then
|
||||
```bash
|
||||
yq '.b | key| line' sample.yml
|
||||
yq '.b | key | line' sample.yml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
|
||||
@ -17,7 +17,7 @@ var lineOperatorScenarios = []expressionScenario{
|
||||
description: "Returns line of _key_ node",
|
||||
subdescription: "Pipe through the key operator to get the line of the key",
|
||||
document: "a: cat\nb:\n c: cat",
|
||||
expression: `.b | key| line`,
|
||||
expression: `.b | key | line`,
|
||||
expected: []string{
|
||||
"D0, P[b], (!!int)::2\n",
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user