Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Sep 7, 2020

The pr diff command had explicit support for defining a pager program through the PAGER environment variable. This tweaks that implementation to make it globally available to commands through the IOStreams object.

Example use: PAGER=less gh repo view cli/cli

Affected commands:

  • repo view
  • issue/pr view
  • issue/pr list
  • issue/pr status

Ref. #1100
Followup to #1290

TODO:

  • consider supporting gh config set pager ...?
  • extend pager support to gh api command?
  • document PAGER environment variable

Extract the ad-hoc PAGER behavior from `pr diff` command and make it
available opt-in to any command through IOStreams.
Copy link
Contributor

@vilmibm vilmibm left a comment

Choose a reason for hiding this comment

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

awesome

@mislav mislav merged commit 3049db6 into trunk Sep 16, 2020
@mislav mislav deleted the pager-for-everyone branch September 16, 2020 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants