databricks-cli/cmd/root
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.go Tweak profile prompt (#454) 2023-06-09 13:56:35 +02:00
bundle.go Added support for bundle.Seq, simplified Mutator.Apply interface (#403) 2023-05-24 14:45:19 +02:00
io.go Rename: bricks -> databricks (#393) 2023-05-22 16:40:50 +02:00
logger.go Add readable console logger (#370) 2023-06-01 11:37:33 +02:00
progress_logger.go Rename: bricks -> databricks (#393) 2023-05-22 16:40:50 +02:00
progress_logger_test.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
root.go Add version flag to print version and exit (#394) 2023-05-22 20:55:42 +02:00
user_agent.go Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
user_agent_command.go Move code for including command name in user agent (#203) 2023-02-15 10:33:35 +01:00
user_agent_command_test.go Move code for including command name in user agent (#203) 2023-02-15 10:33:35 +01:00
user_agent_upstream.go Rename: bricks -> databricks (#393) 2023-05-22 16:40:50 +02:00
user_agent_upstream_test.go Let caller set BRICKS_UPSTREAM for user agent (#196) 2023-02-03 17:05:58 +01:00