ion-cli icon indicating copy to clipboard operation
ion-cli copied to clipboard

Adds `jq` command

Open zslayton opened this issue 9 months ago • 1 comments

Lays the groundwork for an ion jq command.

This PR adds a dependency on the jaq crate, which provides a jq engine, and implements the necessary traits for the Element type.

There are many todo!()s left to implement to support jq features like math operations. However, many basic commands work:

image

There are plenty of open questions around which jq flags to support, what the default expression should be, etc.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

zslayton avatar Mar 18 '25 20:03 zslayton

Fixes: https://github.com/amazon-ion/ion-cli/issues/41

jobarr-amzn avatar Mar 24 '25 21:03 jobarr-amzn