databricks-cli/cmd/labs
Serge Smertin deb7e67ad5
Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128)
## Changes

There's a lot of end-user friction for projects that require
account-level commands. This is mainly related to the fact that, as of
January 2024, workspace administrators do not necessarily have access to
call account-level APIs. Ongoing discussions exist on how to implement
this on a platform level best.

A temporary workaround is creating a dummy ~/.databrickscfg profile with
the `account_id` field, though it doesn't remove the end-user friction.
Hence, we don't require an account profile during installation (anymore)
and just prompt it when the context requires it. This also means that we
always prompt for account-level commands unless users specify a
`--profile` flag.

## Tests
- `go run main.go labs install ucx`, don't see an account profile prompt
- `go run main.go labs ucx sync-workspace-info`, to see a profile prompt
and have a valid auth passed
- `go run main.go labs ucx sync-workspace-info --debug --profile
profile-name` to get a concrete profile passed
2024-01-22 17:35:13 +00:00
..
github Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
localcache Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
project Prompt for account profile only for account-level command execution instead of during `databricks labs install` flow (#1128) 2024-01-22 17:35:13 +00:00
unpack Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
CODEOWNERS Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
clear_cache.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
install.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installed.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installed_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
labs.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
list.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
list_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
show.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
uninstall.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
upgrade.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00