amazon-ion / ion-cli

Apache License 2.0
31 stars 15 forks source link

Centralizes I/O setup, adds `cat` alias for `dump` command #115

Closed zslayton closed 3 months ago

zslayton commented 3 months ago

Issue #, if available: #49, #55


This PR introduces a CommandIo type that provides a centralized implementation of input and output file/stream setup. Individual commands are no longer responsible for detecting I/O errors, configuring decompression, or setting up termcolor's output streams.

It also:


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