ion-cli
ion-cli copied to clipboard
Adds reusable `for_each_input` method
Experimenting with ways to cut down the boilerplate needed to set up IO in each command. While different commands take different approaches to handling input (some mmap, some make a Reader, some make a SystemReader, etc), the handling for output it pretty universal.
This patch shows what the change would look like for the symtab filter and to json commands.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.