Feature request: Streaming from STDIN
rzane opened this issue · 1 comments
rzane commented
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 commented
Thanks for the suggestion! Will look into adding support for this.