-
-
Notifications
You must be signed in to change notification settings - Fork 21
[FEATURE]: add pagination for 'buildtest inspect' command #1210
Copy link
Copy link
Closed
Labels
new featureNew Feature in buildtest such as command line or improvement to buildspecNew Feature in buildtest such as command line or improvement to buildspec
Description
Please describe your feature request
Let's add pagination support for buildtest inspect command that will be done via option --pager and short option -p to be consistent.
The pagination will be done via rich see https://rich.readthedocs.io/en/stable/console.html#paging.
See related implementation in buildtest report or buildtest buildspec for pagination in files: https://github.com/buildtesters/buildtest/blob/devel/buildtest/cli/report.py and https://github.com/buildtesters/buildtest/blob/devel/buildtest/cli/buildspec.py
Action Item
- Add
--pagerand-poption in https://github.com/buildtesters/buildtest/blob/devel/buildtest/cli/__init__.py - Add support of pagination for commands
buildtest inspect buildspec,buildtest inspect name,buildtest inspect queryandbuildtest inspect listin https://github.com/buildtesters/buildtest/blob/devel/buildtest/cli/inspect.py - Add option to bash completion script https://github.com/buildtesters/buildtest/blob/devel/bash_completion.sh
- Add regression test for pagination in https://github.com/buildtesters/buildtest/blob/devel/tests/cli/test_inspect.py
- Add a row entry in
buildtest help inspectpertaining to pagination in https://github.com/buildtesters/buildtest/blob/devel/buildtest/cli/help.py
Post question in Slack
- I agree that I posted my question in slack before creating this issue
Is there an existing issue
- I confirm there is no existing issue for this issue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
new featureNew Feature in buildtest such as command line or improvement to buildspecNew Feature in buildtest such as command line or improvement to buildspec