mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 16:55:40 +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
|
then
|
||||||
```bash
|
```bash
|
||||||
yq '.b | key| line' sample.yml
|
yq '.b | key | line' sample.yml
|
||||||
```
|
```
|
||||||
will output
|
will output
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
@ -17,7 +17,7 @@ var lineOperatorScenarios = []expressionScenario{
|
|||||||
description: "Returns line of _key_ node",
|
description: "Returns line of _key_ node",
|
||||||
subdescription: "Pipe through the key operator to get the line of the key",
|
subdescription: "Pipe through the key operator to get the line of the key",
|
||||||
document: "a: cat\nb:\n c: cat",
|
document: "a: cat\nb:\n c: cat",
|
||||||
expression: `.b | key| line`,
|
expression: `.b | key | line`,
|
||||||
expected: []string{
|
expected: []string{
|
||||||
"D0, P[b], (!!int)::2\n",
|
"D0, P[b], (!!int)::2\n",
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user