Expand description
Which Bitbucket workspace a command acts on.
There is no api call left that discovers a user’s workspaces —
GET /workspaces, GET /user/permissions/workspaces and
GET /user/permissions/repositories were all removed by Atlassian under
CHANGE-2770 and now return 410 — so this resolves entirely from local input.
Structs§
- Workspace
Ctx - The per-command context for workspace-scoped commands.
Functions§
- parse_
list - Splits a comma-separated
--workspace/BB_WORKSPACEvalue into slugs: trims whitespace, drops empty segments, and deduplicates while preserving order. - projects
- Every project in the workspace the token can see.
- resolve_
list - The workspaces to act on, in precedence order:
- resolve_
one - The single workspace to act on. Commands that operate on exactly one
workspace take the first slug of
resolve_list, so--workspace a,bis a harmless superset rather than a second syntax to learn.