Open
Description
Description
The zed
cli currently doesn't provide a way to specify a cursor parameter when using permission lookup-resources
. While the CLI supports pagination through the --page-limit
flag, there's no way to manually resume pagination from a specific cursor position or to share a pagination state between different command invocations.
Desired Behavior
- Add a
--cursor
flag to relevant commands (e.g.,lookup-resources
) - Support providing a cursor token as a parameter to resume pagination
- Support outputting the last cursor with an option like
--show-cursor
Example CLI Usage (Proposed)
# Get first page and show the cursor
zed permission lookup-resources document view user:user1 --page-limit 100 --show-cursor
# Resume from a specific cursor
zed permission lookup-resources document view user:user1 --page-limit 100 --cursor "MzQxODI5Mzc0ODM2NDgwMA=="
Metadata
Metadata
Assignees
Labels
No labels