go-yq

command module
v0.0.0-...-3439330 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2020 License: MIT Imports: 6 Imported by: 0

README

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 Lines of Code Maintainability Rating Quality Gate Status Reliability Rating Security Rating Technical Debt Vulnerabilities CII Best Practices GolangCI

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

installation

curl -L https://github.com/030/go-yq/releases/download/2.1.2/go-yq_2.1.2-0.deb -o go-yq.deb && \
sudo apt -y install ./go-yq.deb

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

or

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL