databricks-cli/cmd
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
..
account Do not generate prompts for certain commands (#438) 2023-06-05 19:38:45 +02:00
api Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
auth Do not use FgWhite and FgBlack for terminal output (#435) 2023-06-05 17:30:40 +02:00
bundle Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
configure Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
fs Add fs rm command for dbfs (#433) 2023-06-05 23:21:47 +00:00
root Tweak profile prompt (#454) 2023-06-09 13:56:35 +02:00
sync Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
version Use cmdio in version command for `--output` flag (#419) 2023-06-01 12:03:22 +02:00
workspace Add workspace export-dir command (#449) 2023-06-08 18:15:12 +02:00