Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for global pager option #1392

Merged
merged 6 commits into from
Feb 21, 2023
Merged

add support for global pager option #1392

merged 6 commits into from
Feb 21, 2023

Conversation

shahzebsiddiqui
Copy link
Member

@shahzebsiddiqui shahzebsiddiqui commented Feb 16, 2023

@prathmesh4321 @Xiangs18 @jscook2345.

This will address #1388

This PR will do the following

  1. add global option buildtest --pager and remove --pager option from each subcommands in particular buildtest config view, buildtest buildspec find, buildtest buildspec summary, buildtest report
  2. Update bash completion script
  3. Update documentation
  4. Refactor some tests by adding comments on what command is being tested
  5. Remove some test pertaining to buildtest rt sm where paging with color was being tested which is not necessary since paging output doesn't show color.
  6. Update table buildtest help to account for --pager option

With this change, we will remove the duplication of --pager option when building out the command line options however user may not know when --pager will work. Not all commands support paging, it only works with tables. Perhaps we have a brief section on paging and show some commands where paging is supported.

Can you please review this PR

--pager options from 'buildtest bc find', 'buildtest bc sm', 'buildtest history list', 'buildtest cg view',
and 'buildtest rt'
update bash completion script accordingly
… instance where --pager was shown in subcommand when

it will be available as a global option
…ildtest buildspec find' and 'buildtest config'.

Remove unnecessary tests from running with 'buildtest rt sm' when using coloring with paging option since
colors are not shown with paging
Copy link
Collaborator

@prathmesh4321 prathmesh4321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @shahzebsiddiqui , LGTM !

@shahzebsiddiqui
Copy link
Member Author

thanks @prathmesh4321

@shahzebsiddiqui shahzebsiddiqui merged commit b6d1f08 into devel Feb 21, 2023
@shahzebsiddiqui shahzebsiddiqui deleted the global_pager branch February 21, 2023 18:44
shahzebsiddiqui added a commit that referenced this pull request Mar 1, 2023
we remove global option '--pager' now its back in the subcommands.
update the bash completion script
we also removed logic for '--color' selection in bash completion in subcommands which is not being used since this is taken care of at the global level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants