Skip to content

fix(cli): add --next/--prev to source, destination and connection list - #501

Open
pcbeingused33 wants to merge 1 commit into
hookdeck:mainfrom
pcbeingused33:fix/list-next-prev-366
Open

pcbeingused33 wants to merge 1 commit into
hookdeck:mainfrom
pcbeingused33:fix/list-next-prev-366

Conversation

@pcbeingused33

Copy link
Copy Markdown
Contributor

Part of #366 (point 1, pagination; points 2 and 3 are left open).

hookdeck gateway source list, destination list and connection list print "To get the next page: ... --next " when more results exist, but none of them accepted --next (or --prev), so the printed command failed with unknown flag: --next. event list and request list already have the flags.

The three commands now take --next and --prev and send them to the API as the next/prev query parameters, the same way event list does. This only covers the pagination point of the issue.

TestResourceListSendsPaginationCursors runs each list command against a stub API and checks that the cursors reach the query string. It fails on main with unknown flag: --next and passes with this change.

This change was prepared with AI assistance.

The text output of these commands tells the user to pass --next to get the
next page, but the flag did not exist. Add --next/--prev and forward the
cursors to the API, as event list and request list already do.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant