mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
Fixed create map issue
This commit is contained in:
@@ -56,7 +56,7 @@ yq '.a + null' sample.yml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
[1, 2, null]
|
||||
[1, 2]
|
||||
```
|
||||
|
||||
## Append to existing array
|
||||
|
||||
@@ -31,8 +31,7 @@ In the yaml 1.2 standard, support for yes/no as booleans was dropped - they are
|
||||
|
||||
Given a sample.yml file of:
|
||||
```yaml
|
||||
- yes
|
||||
- no
|
||||
[yes, no]
|
||||
```
|
||||
then
|
||||
```bash
|
||||
|
||||
@@ -56,6 +56,7 @@ will output
|
||||
```yaml
|
||||
Mike: cat
|
||||
Mike: dog
|
||||
---
|
||||
Rosey: monkey
|
||||
Rosey: sheep
|
||||
```
|
||||
|
||||
@@ -85,6 +85,7 @@ will output
|
||||
```yaml
|
||||
match: cat
|
||||
doc: 0
|
||||
---
|
||||
match: frog
|
||||
doc: 1
|
||||
```
|
||||
|
||||
@@ -158,7 +158,9 @@ yq '. *= load_props("../../examples/small.properties")' sample.yml
|
||||
```
|
||||
will output
|
||||
```yaml
|
||||
is
|
||||
this:
|
||||
is: a properties file
|
||||
cool: ay
|
||||
```
|
||||
|
||||
## Load from base64 encoded file
|
||||
|
||||
Reference in New Issue
Block a user