Skip to content

Respect PAGER, LESS, and NO_PAGER for response paging#741

Merged
ryanfowler merged 1 commit into
mainfrom
respect-pager-and-less
Jun 10, 2026
Merged

Respect PAGER, LESS, and NO_PAGER for response paging#741
ryanfowler merged 1 commit into
mainfrom
respect-pager-and-less

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • Use $PAGER when paging response output instead of hard-coding less
  • Honor NO_PAGER to disable the default auto pager
  • Let $LESS control fallback less flags when $PAGER is unset
  • Update terminal tests and docs to cover the pager precedence and fallback behavior

Testing

  • cargo fmt
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • cargo test --all-features --test cli --test formatting --test grpc --test http --test network --test terminal --test update --test websocket -- --test-threads=1

@ryanfowler ryanfowler merged commit 3af3524 into main Jun 10, 2026
4 checks passed
@ryanfowler ryanfowler deleted the respect-pager-and-less branch June 10, 2026 03:02
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.

1 participant