Readme updates

This commit is contained in:
mfarah 2015-10-06 11:58:51 +11:00
parent 2780903b60
commit 1605938c2c

View File

@ -83,7 +83,7 @@ yaml sample.yaml b.e[1].name
``` ```
will output 'sam' will output 'sam'
#### Array Splat ### Array Splat
e.g.: given a sample file of e.g.: given a sample file of
```yaml ```yaml
b: b:
@ -103,9 +103,9 @@ will output:
- sam - sam
``` ```
## Update examples
### Update to stdout
### Updating yaml
Given a sample.yaml file of: Given a sample.yaml file of:
```yaml ```yaml
b: b:
@ -120,3 +120,16 @@ will output:
b: b:
c: cat 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.