cli/pkg/cmd/discussion/shared
Babak K. Shandiz d2e081bce1
feat(discussion view): add cursor-based pagination to comments
Add --limit and --after flags for paginating through discussion comments.
Cursor output is shown in TTY (hint message), raw (next: field), and JSON.

Change GetWithComments to accept 'after' cursor and 'newest' bool instead
of order string. Implement forward/backward cursor-based pagination in
GraphQL queries depending on comment order.

Change Replies from []DiscussionComment to DiscussionCommentList with
Direction field. Display direction-aware messages (newer/older) for both
comments and replies.

Move DiscussionFields and reactionGroupList from shared to view package.
Delete shared/display.go.

Add 7 new pagination tests and update existing test fixtures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-24 23:50:04 +01:00
..
categories.go fix(discussion/shared): print quoted category slugs 2026-04-14 14:36:21 +01:00
client.go feat(discussion view): add cursor-based pagination to comments 2026-04-24 23:50:04 +01:00
lookup.go docs(discussion/shared): explain why we accept http scheme 2026-04-24 21:56:19 +01:00
lookup_test.go test(discussion/shared): add test for ParseDiscussionArg 2026-04-24 21:56:23 +01:00