open-contracting / ocdskit

A suite of command-line tools for working with OCDS data
https://ocdskit.readthedocs.io
BSD 3-Clause "New" or "Revised" License
17 stars 6 forks source link

Reduce need for jq #108

Closed jpmckinney closed 4 years ago

jpmckinney commented 4 years ago

If the desired input is an array (either at the top-level of a JSON file or at a deeper level), we presently need to use jq to produce a stream to ocdskit. We can consider implementing a command-line option to indicate the path of the array and/or implementing auto-detection (at least for the simple cases, like a top-level array).

Follow-up to #104.

jpmckinney commented 4 years ago

Handing of top-level array done in https://github.com/open-contracting/ocdskit/commit/e2dd9b987367bcdd27b4905928eb7bc5d5404a94