Skip to content

Add substring matching to databricks bundle open#4821

Open
wannte wants to merge 2 commits intodatabricks:mainfrom
wannte:add-prefix-matching-to-bundle-open
Open

Add substring matching to databricks bundle open#4821
wannte wants to merge 2 commits intodatabricks:mainfrom
wannte:add-prefix-matching-to-bundle-open

Conversation

@wannte
Copy link
Copy Markdown

@wannte wannte commented Mar 24, 2026

Changes

Add substring (contains) matching to databricks bundle open for flexible resource resolution.

  • databricks bundle open foo matches any resource whose key contains foo (e.g. my_foo_job)
  • Single match resolves automatically; multiple matches prompt for selection (interactive) or list candidates (non-interactive)
  • Exact match still takes priority over substring matching

Tests

Unit tests covering middle and suffix substring matching in both bundle/resources/lookup_test.go and cmd/bundle/open_test.go.

Supersedes #4461.

🤖 Generated with Claude Code

wannte and others added 2 commits March 24, 2026 16:32
Allow users to type a prefix instead of a full resource key. If the prefix
uniquely identifies a resource it is auto-resolved; if multiple resources
match, an interactive prompt is shown (or an error with candidates in
non-interactive mode).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wannte wannte force-pushed the add-prefix-matching-to-bundle-open branch from 6a5ca7b to 3a7a938 Compare March 24, 2026 07:32
@github-actions
Copy link
Copy Markdown

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 4821
  • Commit SHA: 3a7a9387cfe4a4d1b5f9a90296a7c15aa124b403

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant