oq

A performant, and portable jq wrapper also supporting formats other than JSON json xml yaml devops-tools portable cli jq
0.1.0 released
Blacksmoke16/oq
191 14 11
George Dietrich

oq

Built with Crystal Build Status Latest release oq

A performant, portable jq wrapper thats facilitates the consumption and output of formats other than JSON; using jq filters to transform the data.

  • Portable single binary for Linux/MacOS, statically linked for usage on Linux machines.
  • Performant, similar performance with JSON data compared to jq. Slightly longer execution time when going to/from a non JSON format.

Installation

Linux distrobutions supporting snap packages:

snap install oq

MacOS: (Soon)

brew install oq

Usage

Use the oq binary, with a few custom arguments. All other arguments get passed to jq.

Usage: oq [--help] [oq-arguments] [jq-arguments] jq_filter [file [files...]]
    --help                          Show this help message.
    -i FORMAT, --input FORMAT       Format of the input data. Supported formats: json, yaml, xml.
    -o FORMAT, --output FORMAT      Format of the output data. Supported formats: json, yaml, xml.
    --xml-root ROOT                 Name of the root XML element if converting to XML.

Roadmap

Input Formats:

  • [x] JSON
  • [ ] XML
  • [x] YAML

Output Formats:

  • [x] JSON
  • [x] XML
  • [x] YAML

Contributing

  1. Fork it (https://github.com/Blacksmoke16/oq/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

oq:
  github: Blacksmoke16/oq
  version: ~> 0.1.0
License MIT
Crystal 0.29.0

Authors

Dependencies 0

Development Dependencies 1

  • ameba ~> 0.10.0
    {'github' => 'veelenga/ameba', 'version' => '~> 0.10.0'}

Dependents 0

Last synced .
search fire star recently