databricks-cli/libs
Pieter Noordhuis e4415bfbcf
Tweak profile prompt (#454)
## Changes

This includes the following changes:
* Move profile loading code to libs/databrickscfg and add tests
* Update prompt label to reflect workspace/account profiles
* Start prompt in search mode by default
* Custom error if `~/.databrickscfg` doesn't exist
* Custom error if `~/.databrickscfg` doesn't contain profiles
* Use stderr for prompt so that stdout redirection works (e.g. with `jq` or `jless`)

## Tests

* New unit tests pass
* Manual tests for both workspace and account commands
* Search-by-default is really nice if you have many profiles
2023-06-09 13:56:35 +02:00
..
auth Add profile on `databricks auth login` (#423) 2023-06-02 13:49:39 +02:00
cmdio Tweak profile prompt (#454) 2023-06-09 13:56:35 +02:00
databrickscfg Tweak profile prompt (#454) 2023-06-09 13:56:35 +02:00
errs Added ability for deferred mutator execution (#380) 2023-05-16 18:01:50 +02:00
filer Add workspace export-dir command (#449) 2023-06-08 18:15:12 +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