databricks-cli/libs
Serge Smertin a6c9533c1c
Add profile on `databricks auth login` (#423)
## Changes
- added saving profile to `~/.databrickscfg` whenever we do `databricks
auth login`.
- we either match profile by account id / canonical host or introduce
the new one from deployment name.
- fail on multiple profiles with matching accounts or workspace hosts.
- overriding `~/.databrickscfg` keeps the (valid) comments, but
reformats the file.

## Tests
<!-- How is this tested? -->
- `make test`
- `go run main.go auth login --account-id XXX --host
https://accounts.cloud.databricks.com/`
- `go run main.go auth token --account-id XXX --host
https://accounts.cloud.databricks.com/`
- `go run main.go auth login --host https://XXX.cloud.databricks.com/`
2023-06-02 13:49:39 +02:00
..
auth Add profile on `databricks auth login` (#423) 2023-06-02 13:49:39 +02:00
cmdio Add readable console logger (#370) 2023-06-01 11:37:33 +02:00
databrickscfg Add profile on `databricks auth login` (#423) 2023-06-02 13:49:39 +02:00
errs Added ability for deferred mutator execution (#380) 2023-05-16 18:01:50 +02:00
filer Add check for path is a directory in filer.ReadDir (#426) 2023-06-02 12:28:35 +02:00
fileset Don't sync symlink folders (#205) 2023-02-15 17:02:54 +01:00
flags Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
git Fix tests for new repository name (#390) 2023-05-16 19:02:07 +02:00
locker Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
log Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
notebook Error out if notebook file does not exist locally (#261) 2023-03-21 18:13:16 +01:00
sync Sync: Gracefully handle broken notebook files (#398) 2023-05-23 12:10:15 +02:00
terraform Add bundle destroy command (#300) 2023-04-06 12:54:58 +02:00
testfile Refactor and cover edge cases in sync integration tests (#160) 2023-01-10 13:16:30 +01:00