databricks-cli/cmd
Pieter Noordhuis 0cb05d1ded
Prompt once for a client profile (#727)
## Changes

The previous implementation ran the risk of infinite looping for the
account client due to a mismatch in determining what constitutes an
account client between the CLI and SDK (see
[here](83443bae8d/libs/databrickscfg/profiles.go (L61))
and
[here](0fdc5165e5/config/config.go (L160))).

Ultimately, this code must never infinite loop. If a user is prompted
and selects a profile that cannot be used, they should receive that
feedback immediately and try again, instead of being prompted again.

Related to #726.

## Tests
<!-- How is this tested? -->
2023-09-11 15:32:24 +00:00
..
account Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
api Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
auth Always resolve .databrickscfg file (#659) 2023-08-14 12:45:08 +00:00
bundle Fix temporary directory cleanup for init repository downloading (#760) 2023-09-11 10:22:05 +00:00
configure Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
fs Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
root Prompt once for a client profile (#727) 2023-09-11 15:32:24 +00:00
sync Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
version Added description for version command (#737) 2023-09-06 08:41:47 +00:00
workspace Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
cmd.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00