[bitbake-devel] [PATCH 0/3] knotty: Add automatic pager support

Rob Woolley rob.woolley at windriver.com
Thu Mar 12 15:25:11 UTC 2015


Hi,

Just wanted to send out a ping to see if this enhancement is desired.

It scratches an itch for me, but not sure how others feel about it.

If there are any changes I can make or extra tests I can run, please let 
me know.

Cheers,
Rob

On 02/27/2015 09:32 AM, Rob Woolley wrote:
> The bitbake show_versions (-s) and show_environment (-e) commands provide
> a lot of non-interactive output.  Even experienced users will sometimes
> forget to page the output.
>
> This series adds a feature to automatically page these commands when
> using the knotty user interface.  It doesn't affect any other commands
> and is designed to work in a similar fashion to the auto-paging in git.
>
> This was tested with bitbake -s and bitbake -s | less (and -e) to ensure that
> there were no regressions.  This includes testing broken pipe conditions
> caused by quitting the pager before the full output has been sent through
> the pipe.
>
> knotty: Catch exceptions on broken pipes
>   lib/bb/ui/knotty.py |   43 ++++++++++++++++++++++++-------------------
>   1 file changed, 24 insertions(+), 19 deletions(-)
>
> knotty: Do not log show_versions output
>   lib/bb/ui/knotty.py |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> knotty: Add automatic paging for bitbake -s and -e
>   lib/bb/ui/knotty.py |   46 +++++++++++++++++++++++++++++++++++++++++++---
>   1 file changed, 43 insertions(+), 3 deletions(-)




More information about the bitbake-devel mailing list