https://github.com/gomatic/yq
YAML wrapper for the fantastic jq tool
https://github.com/gomatic/yq
jq query yaml
Last synced: 3 months ago
JSON representation
YAML wrapper for the fantastic jq tool
- Host: GitHub
- URL: https://github.com/gomatic/yq
- Owner: gomatic
- License: gpl-3.0
- Created: 2017-04-13T00:48:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-24T22:27:24.000Z (about 6 years ago)
- Last Synced: 2024-07-30T20:10:29.966Z (9 months ago)
- Topics: jq, query, yaml
- Language: Go
- Size: 22.5 KB
- Stars: 12
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yq
[](https://travis-ci.org/gomatic/yq)
YAML wrapper for the fantastic [`jq`](https://stedolan.github.io/jq/) tool.
go get github.com/gomatic/yq
# usage
yq [options...] filter -- [files...]
Notice the `--`. It's mandatory so `yq` can distinguish the files from the options and filter.
It also allows `yq` to determine that input is coming from stdin.# issues
Since `jq` can output JSON that isn't well-formed, such output can't _easily_ be converted back to yaml.
In such cases, the JSON will be output.