Skip to main content

Module cli

Module cli 

Source

Modules§

auth
branch
branch_restriction
branching_model
commit
deploy
file
issue
pagination
Shared pagination and formatting helpers for CLI list commands.
permission
pipeline
pr
repo
reviewer
tag
user
webhook
workspace

Structs§

Cli

Enums§

Commands
OutputFormat
How command results are rendered.

Functions§

output_json
True when --output json was passed; handlers should emit raw JSON.
parse_repo
Parse workspace/repo-slug, or a bare repo-slug resolved against –workspace / the configured default workspace.
resolve_create_target
Resolve repo create’s positional pair: an explicit second argument makes the first the workspace; otherwise the first is workspace/name or a bare name resolved like any repo argument.
resolve_workspace
Resolve a workspace given optionally on the command line, falling back to the --workspace override recorded by set_workspace_override and then to default_workspace from the config file (read from disk on each call).
set_output_format
Record the global --output choice for this process.
set_workspace_override
Record the global --workspace override for this process.