Can now splat maps

This commit is contained in:
mfarah
2015-10-06 10:08:31 +11:00
parent 6a696c81db
commit 81672d4efe
4 changed files with 73 additions and 2 deletions
+22
View File
@@ -33,6 +33,26 @@ cat sample.yaml | yaml - b.c
```
will output the value of '2'.
### Splat
Given a sample.yaml file of:
```yaml
---
bob:
item1:
cats: bananas
item2:
cats: apples
```
then
```bash
yaml sample.yaml bob.*.cats
```
will output
```yaml
- bananas
- apples
```
### Handling '.' in the yaml key
Given a sample.yaml file of:
```yaml
@@ -82,6 +102,8 @@ will output:
- sam
```
### Updating yaml
Given a sample.yaml file of:
```yaml