Skip to content

feat: next-page hint should mention --all (not just --page <token>) #808

Description

@privatenumber

Summary

When list/search output is capped at --max and more pages exist, gog prints a next-page hint to
stderr that only shows the page token. Surfacing --all would make full retrieval more
discoverable, especially for agents.

Current (v0.22.0, 197992a)

printNextPageHint (shared by ~39 commands) prints # Next page: --page <token>
(internal/cmd/output_helpers.go:52-57). The relevant flags are --all/--all-pages and --max
(e.g. internal/cmd/gmail_search.go:18,20).

Suggested fix

Enrich the shared hint, e.g. # More results: --all to fetch everything, or --page <token> for the next page. One change improves all ~39 commands.

Environment

gog v0.22.0 (confirmed by reading source at 197992a).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions