mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
Drop document type
This commit is contained in:
@@ -75,11 +75,6 @@ yq '[... | {"p": path | join("."), "isKey": is_key, "hc": headComment, "lc": lin
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
- p: ""
|
||||
isKey: false
|
||||
hc: ""
|
||||
lc: ""
|
||||
fc: ""
|
||||
- p: ""
|
||||
isKey: false
|
||||
hc: ""
|
||||
@@ -140,11 +135,6 @@ yq '[... | {"p": path | join("."), "isKey": is_key, "hc": headComment, "lc": lin
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
- p: ""
|
||||
isKey: false
|
||||
hc: ""
|
||||
lc: ""
|
||||
fc: ""
|
||||
- p: ""
|
||||
isKey: false
|
||||
hc: ""
|
||||
@@ -197,7 +187,6 @@ yq '. head_comment="single"' sample.yml
|
||||
will output
|
||||
```yaml
|
||||
# single
|
||||
|
||||
a: cat
|
||||
```
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ yq '..' sample.yml
|
||||
will output
|
||||
```yaml
|
||||
a: frog
|
||||
a: frog
|
||||
frog
|
||||
```
|
||||
|
||||
@@ -93,7 +92,6 @@ yq '...' sample.yml
|
||||
will output
|
||||
```yaml
|
||||
a: frog
|
||||
a: frog
|
||||
a
|
||||
frog
|
||||
```
|
||||
@@ -111,9 +109,6 @@ yq '[..]' sample.yml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
- a: &cat
|
||||
c: frog
|
||||
b: *cat
|
||||
- a: &cat
|
||||
c: frog
|
||||
b: *cat
|
||||
|
||||
Reference in New Issue
Block a user