databricks-cli/libs/cmdio
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
..
context.go Add bundle destroy command (#300) 2023-04-06 12:54:58 +02:00
error_event.go Use cmdio logger to log bricks cmd execution errors (#348) 2023-04-24 12:11:52 +02:00
event.go Move state to event for whether they support inplace progress logging (#339) 2023-04-18 14:20:35 +02:00
io.go Prompt once for a client profile (#727) 2023-09-11 15:32:24 +00:00
logger.go Add enum support for bundle templates (#668) 2023-09-08 12:07:22 +00:00
logger_test.go Add enum support for bundle templates (#668) 2023-09-08 12:07:22 +00:00
message_event.go Log mutator messages using progress logger (#312) 2023-04-18 16:55:06 +02:00
render.go Decode contents by default in workspace export command (#531) 2023-06-27 20:42:29 +02:00
testing.go Prompt once for a client profile (#727) 2023-09-11 15:32:24 +00:00