Skip to content

lakebox: tab completion for sandbox IDs and ssh-key hashes#5310

Merged
akshaysingla-db merged 1 commit into
databricks:demo-lakeboxfrom
akshaysingla-db:akshay/lakebox-completion
May 29, 2026
Merged

lakebox: tab completion for sandbox IDs and ssh-key hashes#5310
akshaysingla-db merged 1 commit into
databricks:demo-lakeboxfrom
akshaysingla-db:akshay/lakebox-completion

Conversation

@akshaysingla-db
Copy link
Copy Markdown
Collaborator

Wire ValidArgsFunction on every lakebox subcommand that takes a positional argument so shells with cobra completion sourced suggest real IDs instead of falling back to filename completion:

  • ssh / status / stop / start / delete / config / set-default — sandbox IDs
  • ssh-key delete — registered key hashes

Surfaced through the existing databricks completion bash|zsh|fish subcommand. Completion is best-effort — silently returns no suggestions on any error so the shell stays usable.

Stacked on top of # (start + ssh fail-fast) since start needs to participate in completion too.

Co-authored-by: Isaac

Changes

Why

Tests

@github-actions
Copy link
Copy Markdown
Contributor

Waiting for approval

Based on git history, these people are best suited to review:

  • @pietern -- recent work in cmd/lakebox/

Eligible reviewers: @andrewnester, @anton-107, @denik, @renaudhartert-db, @shreyas-goenka, @simonfaltum

Suggestions based on git history. See OWNERS for ownership rules.

@akshaysingla-db akshaysingla-db force-pushed the akshay/lakebox-completion branch from 36073ca to 9a79c94 Compare May 28, 2026 04:07
Wire `ValidArgsFunction` on every lakebox subcommand that takes a
positional argument so shells with cobra completion sourced suggest
real IDs instead of falling back to filename completion:

- ssh / status / stop / start / delete / config / set-default — sandbox IDs
- ssh-key delete — registered key hashes

Surfaced through the existing `databricks completion bash|zsh|fish`
subcommand. Completion is best-effort — silently returns no
suggestions on any error so the shell stays usable.

Stacked on top of #<PR-A-NUM> (start + ssh fail-fast) since `start`
needs to participate in completion too.

Co-authored-by: Isaac
@akshaysingla-db akshaysingla-db force-pushed the akshay/lakebox-completion branch from 9a79c94 to 23e90cd Compare May 29, 2026 06:09
@akshaysingla-db akshaysingla-db merged commit 51b669a into databricks:demo-lakebox May 29, 2026
13 of 20 checks passed
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