mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Readme updates
This commit is contained in:
parent
2780903b60
commit
1605938c2c
19
README.md
19
README.md
@ -83,7 +83,7 @@ yaml sample.yaml b.e[1].name
|
||||
```
|
||||
will output 'sam'
|
||||
|
||||
#### Array Splat
|
||||
### Array Splat
|
||||
e.g.: given a sample file of
|
||||
```yaml
|
||||
b:
|
||||
@ -103,9 +103,9 @@ will output:
|
||||
- sam
|
||||
```
|
||||
|
||||
## Update examples
|
||||
|
||||
|
||||
### Updating yaml
|
||||
### Update to stdout
|
||||
Given a sample.yaml file of:
|
||||
```yaml
|
||||
b:
|
||||
@ -120,3 +120,16 @@ will output:
|
||||
b:
|
||||
c: cat
|
||||
```
|
||||
|
||||
|
||||
### Updating yaml in-place
|
||||
Given a sample.yaml file of:
|
||||
```yaml
|
||||
b:
|
||||
c: 2
|
||||
```
|
||||
then
|
||||
```bash
|
||||
yaml wi sample.yaml b.c cat
|
||||
```
|
||||
will update the sample.yaml file so that the value of 'c' is cat.
|
||||
|
Loading…
Reference in New Issue
Block a user