Skip to content

feat(cli): add Workspace option aliases - #398

Merged
cloudsmith-iduffy merged 3 commits into
masterfrom
feat/workspace-option-alias
Aug 27, 2026
Merged

feat(cli): add Workspace option aliases#398
cloudsmith-iduffy merged 3 commits into
masterfrom
feat/workspace-option-alias

Conversation

@cloudsmith-iduffy

@cloudsmith-iduffy cloudsmith-iduffy commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • expose one shared Workspace option as -w/--workspace
  • make cloudsmith auth inherit the shared flag, environment, and config.ini value, prompting only when none is configured
  • support CLOUDSMITH_WORKSPACE and workspace in config.ini across authentication, OIDC, and custom-domain discovery
  • include the Workspace slug as workspace in cloudsmith domains list output
  • update command help, customer-facing messages, defaults, tests, and the 1.26.0 changelog

Validation

  • pre-commit run --all-files
  • pytest -m "not integration" (1,111 passed)
  • pytest -q cloudsmith_cli/cli/tests/commands/test_domains.py (25 passed)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 26, 2026 20:57
@cloudsmith-iduffy
cloudsmith-iduffy requested a review from a team as a code owner August 26, 2026 20:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CLI’s shared “org” option to support Cloudsmith’s “Workspace” terminology while preserving backward-compatible spellings used by existing scripts and configs.

Changes:

  • Added -w/--workspace as additional aliases for the existing internal org option used by OIDC and custom-domain discovery.
  • Updated help text, warnings, and command documentation/examples to refer to “Workspace” instead of “organisation”.
  • Recorded the change in the changelog for the upcoming release.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
cloudsmith_cli/cli/tests/test_org_option.py Extends option-alias tests to cover -w/--workspace and updates terminology in module/docs.
cloudsmith_cli/cli/decorators.py Adds -w/--workspace aliases to the shared Click option and updates its help text.
cloudsmith_cli/cli/commands/domains.py Updates command docs/examples and warning text to use Workspace terminology and --workspace in examples.
cloudsmith_cli/cli/commands/credential_helper/docker.py Updates credential-helper documentation to refer to Workspace and --workspace.
cloudsmith_cli/cli/commands/credential_helper/cargo.py Updates credential-helper documentation to refer to Workspace and --workspace.
CHANGELOG.md Adds an “Added” entry documenting the new -w/--workspace aliases and compatibility guarantees.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

cloudsmith-iduffy and others added 2 commits August 27, 2026 06:27
Unify auth with the shared Workspace option, retain all legacy aliases, and prefer CLOUDSMITH_WORKSPACE and the workspace config key.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@tigh-latte tigh-latte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull down and tested, working well on my end

@cloudsmith-iduffy
cloudsmith-iduffy merged commit 73dd692 into master Aug 27, 2026
22 checks passed
@cloudsmith-iduffy
cloudsmith-iduffy deleted the feat/workspace-option-alias branch August 27, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants