mirror of
https://github.com/taigrr/yq
synced 2025-01-18 04:53:17 -08:00
Updated docs re creating a new array
This commit is contained in:
@@ -20,7 +20,7 @@ Create scripts follow the same format as the update scripts.
|
||||
Given a script create_instructions.yaml of:
|
||||
```yaml
|
||||
b.c: 3
|
||||
b.e[0].name: Howdy Partner
|
||||
b.e[+].name: Howdy Partner
|
||||
```
|
||||
then
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ b:
|
||||
```
|
||||
then
|
||||
```bash
|
||||
yq w sample.yaml b.d[0] "new thing"
|
||||
yq w sample.yaml b.d[+] "new thing"
|
||||
```
|
||||
will output:
|
||||
```yaml
|
||||
@@ -214,7 +214,7 @@ b:
|
||||
and a script update_instructions.yaml of:
|
||||
```yaml
|
||||
b.c: 3
|
||||
b.e[0].name: Howdy Partner
|
||||
b.e[+].name: Howdy Partner
|
||||
```
|
||||
then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user