Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* `databricks auth describe` now reports where U2M (`databricks-cli`) tokens are stored: `plaintext` (`~/.databricks/token-cache.json`) or `secure` (OS keyring), and the source of the choice (env var, config setting, or default).
* Marked the default profile in the interactive pickers shown by `databricks auth switch`, `databricks auth logout`, `databricks auth token`, and `databricks auth login`, and moved it to the top of the list. `databricks auth login` and `databricks auth logout` now offer the same selectors as `databricks auth token` and `databricks auth switch` respectively.
* The interactive auth profile pickers now start in search mode so typing immediately filters the list, and the action entries (`+ Create a new profile`, `→ Enter a host URL manually`) are visually distinct from real profiles and stay visible regardless of the search query.
* Shortened the host prompt label shown after `→ Enter a host URL manually` in `databricks auth login` so the prompt no longer leaves stale lines on screen when typing or pasting a host URL.

### Bundles
* Stop applying `presets.name_prefix` (and the dev-mode `[dev <user>]` rename) to `vector_search_endpoints` ([#5209](https://github.com/databricks/cli/pull/5209)).
Expand Down
7 changes: 6 additions & 1 deletion cmd/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ func promptForHost(ctx context.Context) (string, error) {
return "", errors.New("the command is being run in a non-interactive environment, please specify a host using --host")
}

// The hint is printed separately so the prompt label stays short.
// promptui's screenbuf does not account for terminal line wrapping, and a
// long "label + value" line that wraps causes each keystroke to leave a
// stale render on screen instead of overwriting the previous one.
cmdio.LogString(ctx, "Example: https://<databricks-instance>.cloud.databricks.com")
return cmdio.RunPrompt(ctx, cmdio.PromptOptions{
Label: "Databricks host (e.g. https://<databricks-instance>.cloud.databricks.com)",
Label: "Databricks host",
})
}

Expand Down
Loading