Fixed create map issue

This commit is contained in:
Mike Farah
2023-05-30 11:34:31 +10:00
parent 82f717226c
commit d033ad570e
8 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ yq '.a + null' sample.yml
```
will output
```yaml
[1, 2, null]
[1, 2]
```
## Append to existing array
+1 -2
View File
@@ -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
```
+3 -1
View File
@@ -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