GeezerVison is showing github.com — stream to echo_via_pager · Issue #409 · pallets/click
stream to echo_via_pager #409Labels help outputHelp text formatting, layout, and --help rendering DescriptionThere should be a possibility to launch the pager while still generating the data it is supposed to show. Proposed API:
with echo_via_pager() as f:
f.write('foobar')
Reacted by Steffen Neubauer, Anton Backer and Daniel Hahler Activitymitsuhiko commented on Sep 15, 2015 I think this might be impossible to support given how the pager fallbacks work. untitaker commented on Sep 20, 2015 ContributorAuthor More actions In that case I think it makes sense to just skip the fallbacks that don't support this.
I need this because I want to write something like git log, and want to immediately show something instead of buffering the whole log. Reacted by Matthew Gamble meejah commented on Jan 11, 2016 +1
I'm currently working around this by collecting all my lines in some list and then echoing them, but for large inputs this can take a while (and, obviously, for really large inputs, exhaust memory). So, the user experience is bad for large inputs since it appears nothing is happening... added 2 commits that reference this issue on Nov 12, 2017This issue will close once commit 000b0b8 is merged into the 'master' branch.000b0b8 This issue will close once commit 4dccc18 is merged into the 'master' branch.4dccc18 stefreak commented on Nov 12, 2017 I pushed a solution using generators. I'd love to get some early feedback and would finish the implementation if the design is pleasing :) added a commit that references this issue on Nov 13, 2017This issue will close once commit 8afe19e is merged into the 'master' branch.8afe19e added 4 commits that reference this issue on Jan 8, 2018This issue will close once commit 7ce2f7d is merged into the 'master' branch.7ce2f7d This issue will close once commit d7ced98 is merged into the 'master' branch.d7ced98 This issue will close once commit 99713bb is merged into the 'master' branch.99713bb This issue will close once commit 532aa83 is merged into the 'master' branch.532aa83 added 3 commits that reference this issue on Apr 3, 2018This issue will close once commit cdd09e7 is merged into the 'master' branch.cdd09e7 This issue will close once commit f9dea22 is merged into the 'master' branch.f9dea22 This issue will close once commit 6ca05be is merged into the 'master' branch.6ca05be added a commit that references this issue on May 14, 2018This issue will close once commit b1b4449 is merged into the 'main' branch.b1b4449 locked as resolved and limited conversation to collaborators on Nov 13, 2020
MetadataMetadatahelp outputHelp text formatting, layout, and --help rendering DevelopmentNo branches or pull requestsIssue actions
|