Skip to content

Show pagination progress dots when fetching all transactions - #7

Merged
mrtlopes merged 1 commit into
mainfrom
feat/pagination-progress-indicator
Apr 21, 2026
Merged

mrtlopes merged 1 commit into
mainfrom
feat/pagination-progress-indicator

Conversation

@christiantrummer

Copy link
Copy Markdown
Contributor

Summary

  • Adds a progress io.Writer parameter to PaginateAll so callers can opt in to progress reporting
  • When --all is passed and stderr is a terminal, the transactions command prints a dot per fetched page
  • All other callers (wallets, ticker, assets) pass nil — no behavior change for them

Test plan

  • Run bp transactions --all in a terminal and verify dots appear on stderr while pages are fetched, followed by a newline
  • Run bp transactions --all 2>/dev/null and verify no dots appear (non-terminal path)
  • Run existing tests: go test ./...
  • Verify bp wallets, bp portfolio still work normally

🤖 Generated with Claude Code

When --all is used and stderr is a terminal, print a dot per fetched
page so the user gets feedback during long-running fetches.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@christiantrummer
christiantrummer requested a review from a team April 21, 2026 09:40
@mrtlopes
mrtlopes merged commit fc708f3 into main Apr 21, 2026
2 checks passed
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.

2 participants