Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: process stdin and/or to stdout #3

Open
roycewilliams opened this issue Sep 1, 2023 · 3 comments
Open

feature: process stdin and/or to stdout #3

roycewilliams opened this issue Sep 1, 2023 · 3 comments

Comments

@roycewilliams
Copy link

For some workflows, it would be very helpful if gramify could operate on stdin and/or send output to stdout.

@0xVavaldi
Copy link
Owner

STDIN is generally possible because gramify processes line-by-line. STDOUT has some issues however because gramify outputs a lot of duplicates. What approach would you recommend here for your considered usecases? Let the user figure it out, or not implement it to force the proper handling of the duplicates?

@roycewilliams
Copy link
Author

Hot take: let the user decide what to do with duplicates.

@0xVavaldi
Copy link
Owner

Added a partial implementation of --stdout, but I quickly noticed that the way I handle file input & output needs a pretty big overhaul to neatly handle the implementation of stdin and out for more complex setups. So I would need to find some time and motivation to rework that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants