ion-cli
ion-cli copied to clipboard
I have a simple use case of formatting ion files in-place. I tried this via `ion dump --format pretty foo.ion -o foo.ion` which resulted in empty files. It appears that...
(Suggestion) We should probably shift `head` related logic to `head.rs`. Whatever part of `dump` we are reusing there we should create a helper method for that in `dump.rs` and then...
Standard invocations of `head` add a header per file emitted. We *may* want to do that, but we need to consider the implications when using `ion head` in part of...
https://github.com/amazon-ion/ion-rust/pull/485 introduces the ability to iteratively parse top-level values from a stream. Previously, only `@[u8]` was supported as input, forcing `inspect` and `to` to memory-map the stream (e.g., https://github.com/amazon-ion/ion-cli/blob/master/src/bin/ion/commands/beta/inspect.rs#L182). The...
Allow users to analyze streams for information about: * Number of symbols * Number of symbol tables (and appends vs fresh tables) * Minimum/maximum/average size of top-level values (this helps...
The `jq` tool is cited as one of the reasons for wanting to downconvert to JSON in #40. If `ion-cli` had a subcommand with similar functionality, it would be one...
The version of `ion-schema-rust` used here does not seem to support the `document` core type, described in the Ion schema spec [here](https://amzn.github.io/ion-schema/docs/isl-1-0/spec#core-types). Given this content adapted from the [`document` example](https://amzn.github.io/ion-schema/docs/isl-1-0/spec#document)...
When presenting a symbol table each entry is shown as a string: ``` 3357 | 14 | 8d 6d 61 72 6b 65 74 70 | "marketplaceId", | | 6c...
Given an Ion file such as ``` a b c ``` the `ion-cli beta schema validate` command will perform separate validations on each value in this file instead of reading...
Similar to amzn/ion-rust and partiql/partiql-lang-rust, we should have CI integration. E.g. * https://github.com/amzn/ion-rust/blob/main/.github/workflows/rust.yml * https://github.com/amzn/ion-rust/blob/main/.github/workflows/coverage.yml