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

Adds reusable `for_each_input` method

Open zslayton opened this issue 2 years ago • 0 comments

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.

zslayton avatar Jul 07 '23 05:07 zslayton