Skip to content

Commit

Permalink
Get examples
Browse files Browse the repository at this point in the history
Make the example commands work with the example yaml
  • Loading branch information
shemau authored May 10, 2018
1 parent 1a5af7a commit ee590d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,19 @@ $ goml get -f sample.yml -p array.1
// returns two
```

**Map Arrays**

Get value from array which contains maps:

```
$ goml get -f sample.yml -p array.0.name
// return foo
$ goml get -f sample.yml -p mapArray.0.name
// returns foo
```

**Map Arrays**

Get value from array which contains maps by an identifier:

```
$ goml get -f sample.yml -p array.id:two.name
$ goml get -f sample.yml -p mapArray.id:two.name
// returns bar
```

Expand Down

0 comments on commit ee590d8

Please sign in to comment.