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 request: Streaming from STDIN #81

Open
rzane opened this issue May 7, 2024 · 1 comment
Open

Feature request: Streaming from STDIN #81

rzane opened this issue May 7, 2024 · 1 comment

Comments

@rzane
Copy link

rzane commented May 7, 2024

First off, I really like this tool, so thank you for making it!

Imagine you have a program that slowly generates CSV lines. It'd be nice if csvlens could stream STDIN instead of waiting for it to close.

Compare the behavior of these commands:

$ bash -c 'echo a,b; sleep 2; echo 1,2; sleep 2; echo 3,4' | less
$ bash -c 'echo a,b; sleep 2; echo 1,2; sleep 2; echo 3,4' | csvlens

You'll notice that less starts showing output immediately, but csvlens waits a full 4 seconds to show any output.

@YS-L
Copy link
Owner

YS-L commented May 11, 2024

Thanks for the suggestion! Will look into adding support for this.

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