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

Latest commit

 

History

History
70 lines (55 loc) · 3.79 KB

README.md

File metadata and controls

70 lines (55 loc) · 3.79 KB

go-yq

Build Status Go Report Card DevOps SE Questions Docker Pulls Issues Pull requests Total downloads License Repository Size Contributors Commit activity Last commit Release date Latest Production Release Version Bugs Code Smells Coverage Duplicated Lines (%) Lines of Code Maintainability Rating Quality Gate Status Reliability Rating Security Rating Technical Debt Vulnerabilities CII Best Practices

jq-style golang equivalent of yq. Another yq tool that is written in golang could be used if one requires more features.

rationale

go-yq was created to prevent that pip has to be installed in order to install yq

usage

help

[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

examples

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

returns:

63.0.1

dockeri.co

docker run -v /home/ben/dev/ansible-firefox:/ansible-firefox \
       -it utrecht/go-yq:2.1.0 .firefox_version \
       /ansible-firefox/defaults/main.yml

returns:

66.0.3