Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

Commit

Permalink
[GH-20] update usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
030 authored Nov 13, 2018
1 parent 26a6889 commit 85ab3cb
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,24 @@ go-yq was created to prevent that pip has to be installed in order to install yq

```
[user@localhost go-yq]$ ./go-yq -h
Usage of ./go-yq:
-debug
Whether debugging should be enabled
-key string
Specify the key (default "key")
-yamlFile string
Path to a yaml file (default "file.yaml")
2018/11/13 12:07:39 Usage: go-yq <key e.g. .foo.bar> <filename e.g. input.yaml>
exit status 1
```

### example

```
[user@localhost go-yq]$ ./go-yq -yamlFile /home/user/dev/ansible-firefox/defaults/main.yml -key firefox_version
[user@localhost go-yq]$ ./go-yq go run main.go .firefox_version ~/dev/ansible-firefox/defaults/main.yml
```

returns:

```
62.0.3
63.0.1
```

### dependencies
## Dependencies

```
go get github.com/spf13/viper
```
```

0 comments on commit 85ab3cb

Please sign in to comment.