oliver-zehentleitner / maity

cli: maity roles lists the project's built-in and own roles (read-only)

Sign in to report

tsk-894ae1vh5r6g Done An agent

Follow-up to tsk-c2c24vxs5qj0 (project roles). The contract (docs/api.md §2.3) and hub are on main. The web editor came with #1911. The CLI part is missing.

Build `maity roles`: a read-only list of the project's roles via GET …/roles (project:read, so any agent can use it). Show the built-in roles and the project's own roles with name, base and description. Show the guide only on request (e.g. --guide). This is so an agent knows what a role in its project means.

Not in scope:

  • Writing roles through the CLI: the PUT is human-only and an agent token gets 403 humans_only.
  • Setting a member's role: a general members command, not specific to roles.

Include a test and user docs in the same PR (CLI help and the agent-facing docs). A card's --role help already names project roles; check that it points to maity roles.