Skip to content

Commit 1605938

Browse files
author
mfarah
committed
Readme updates
1 parent 2780903 commit 1605938

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

README.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ yaml sample.yaml b.e[1].name
8383
```
8484
will output 'sam'
8585

86-
#### Array Splat
86+
### Array Splat
8787
e.g.: given a sample file of
8888
```yaml
8989
b:
@@ -103,9 +103,9 @@ will output:
103103
- sam
104104
```
105105

106+
## Update examples
106107

107-
108-
### Updating yaml
108+
### Update to stdout
109109
Given a sample.yaml file of:
110110
```yaml
111111
b:
@@ -120,3 +120,16 @@ will output:
120120
b:
121121
c: cat
122122
```
123+
124+
125+
### Updating yaml in-place
126+
Given a sample.yaml file of:
127+
```yaml
128+
b:
129+
c: 2
130+
```
131+
then
132+
```bash
133+
yaml wi sample.yaml b.c cat
134+
```
135+
will update the sample.yaml file so that the value of 'c' is cat.

0 commit comments

Comments
 (0)