jq-style golang equivalent of yq.
go-yq was created to prevent that pip has to be installed in order to install yq
curl -L https://github.com/030/go-yq/releases/download/x.y.z/go-yq_x.y.z-0.deb -o go-yq.deb && \
sudo apt -y install ./go-yq.deb
[user@localhost go-yq]$ ./go-yq -h
2018/11/13 12:07:39 Usage: go-yq <key e.g. .foo.bar> <filename e.g. input.yaml>
exit status 1
[user@localhost go-yq]$ ./go-yq go run main.go .firefox_version ~/dev/ansible-firefox/defaults/main.yml
or
docker run -v /home/ben/dev/ansible-firefox:/ansible-firefox \
-it utrecht/go-yq:x.y.z .firefox_version \
/ansible-firefox/defaults/main.yml
returns:
66.0.3