Skip to main content

Module workspace

Module workspace 

Source
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§

WorkspaceCtx
The per-command context for workspace-scoped commands.

Functions§

parse_list
Splits a comma-separated --workspace/BB_WORKSPACE value 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,b is a harmless superset rather than a second syntax to learn.