Skip to content

Make ug configure take a single --workspace/--profile - #653

Merged
david-siqi-liu merged 1 commit into
mainfrom
david/configure-single-workspace
Sep 15, 2026
Merged

david-siqi-liu merged 1 commit into
mainfrom
david/configure-single-workspace

Conversation

@david-siqi-liu

@david-siqi-liu david-siqi-liu commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

ug configure previously accepted comma-separated --workspaces and --profiles lists. This collapses each to a single value, since a configure run targets one workspace at a time.

  • Renames --workspaces to --workspace (one workspace URL) and --profiles to --profile (one Databricks CLI profile).
  • Each flag rejects a comma-separated value with an actionable error.
  • Keeps --workspaces and --profiles as hidden, deprecated aliases that accept a single value, so existing scripts keep working (matching the --skip-validate / --skip-upgrade precedent).
  • Updates help text, error messages, docstrings, README, and tests. Confirmed no other command exposed --workspaces or --profiles.
  • Internal state plumbing still accepts a list, so each parser wraps its single entry; retiring the now-unused multi-workspace path is left as a follow-up.

This pull request and its description were written by Isaac.

@david-siqi-liu david-siqi-liu added the quicktree-assisted PR created with quicktree-assisted workflow label Sep 15, 2026
@david-siqi-liu
david-siqi-liu force-pushed the david/configure-single-workspace branch 4 times, most recently from a8b9327 to 6c93588 Compare September 15, 2026 20:22
Comment thread src/ucode/cli.py
ug configure accepted comma-separated --workspaces and --profiles lists. Collapse each to a single-value --workspace / --profile, matching the one-workspace-at-a-time usage. Each singular parser rejects a comma-separated value with an actionable error.

--workspaces and --profiles remain as hidden, deprecated aliases that take a single value, so existing scripts keep working (matching the --skip-validate / --skip-upgrade precedent).

The internal state plumbing still accepts a list, so each parser wraps its single entry; retiring the now-unused multi-workspace path is left as a follow-up.

Co-authored-by: Isaac <no-reply@databricks.com>
@david-siqi-liu
david-siqi-liu force-pushed the david/configure-single-workspace branch from 6c93588 to 150a47c Compare September 15, 2026 21:17
@david-siqi-liu
david-siqi-liu enabled auto-merge (squash) September 15, 2026 21:28
@david-siqi-liu
david-siqi-liu merged commit fc3db32 into main Sep 15, 2026
18 checks passed
@david-siqi-liu
david-siqi-liu deleted the david/configure-single-workspace branch September 15, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

quicktree-assisted PR created with quicktree-assisted workflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants