Skip to content

Support cursor parameter for zed permission lookup-resources #482

Open
@kbrwn

Description

@kbrwn

Description

The zedcli 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions