databricks-cli/cmd
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
..
account Always require path parameters as positional arguments (#1129) 2024-01-17 14:14:20 +00:00
api Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
auth Ask for host when .databrickscfg doesn't exist (#1041) 2023-12-04 15:40:52 +00:00
bundle Added `databricks bundle generate job` command (#1043) 2024-01-17 14:26:33 +00:00
configure Filter out system clusters for `--configure-cluster` (#1031) 2023-11-30 09:59:11 +00:00
fs Fix windows style file paths in fs cp command (#1118) 2024-01-11 18:49:42 +00:00
labs 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
root Always log with text format by default (#1096) 2024-01-03 09:39:33 +00:00
sync Tweak command groups in CLI help (#1092) 2023-12-28 13:14:55 +00:00
version Added description for version command (#737) 2023-09-06 08:41:47 +00:00
workspace Added `databricks bundle generate job` command (#1043) 2024-01-17 14:26:33 +00:00
cmd.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00