Make list output flush so that can be piped.#64
Conversation
The other output options already flush.
Merge sferik/t into timvdalen/t
|
Are you sure this is the correct (and only) place to call It would be nice to have some tests to go along with this code. |
|
I haven't had time to test this with the latest version. I think I will be able to do that tomorrow. For the master version two months ago, this was the only place it needed. What I remember from my testing was that the CSV gem/lib flushed the output itself. |
|
Cool. The streaming stuff isn't very well tested at the moment but @spagalloco is working on a branch for that. |
|
As far as I can tell, this piping output (both streaming and non-streaming) works in the latest version of the gem. Please re-open this issue with your specific use case if you're still having this problem. |
|
I just re-read #62, which appears to be a valid use case for this patch. My only remaining concern is that this is incomplete. It needs to work for the default output format and for CSV output, not just for the table view. |
Bring in master
|
Changes Unknown when pulling 5d98563 on timvdalen:master into * on sferik:master*. |
Make list output flush so that can be piped.
A very small commit, but made a pull request for #62.