databricks-cli/cmd
Miles Yucht f203731fe6
Support tab completion for profiles (#572)
## Changes
Currently, `databricks --profile <TAB>` autocompletes with the shell
default behavior, listing files in the local directory. This is not a
great experience. Especially given that the suggested profile names for
accounts are so long, it can be cumbersome to type them out by hand.
This PR configures autocompletion for `--profile` to inspect the
profiles of ~/.databrickscfg.

One potential improvement is to filter the response based on whether the
command is known to be account-level or workspace-level.

## Tests
Manual test.
<img width="579" alt="Screenshot_11_07_2023__18_31"
src="https://github.com/databricks/cli/assets/1850319/d7a3acd0-2511-45ac-bd82-95567775c10a">
2023-07-12 12:05:51 +02:00
..
account Fixed ignoring required positional parameters when --json flag is provided (#535) 2023-07-03 13:20:30 +02:00
api Rename bricks -> databricks (#389) 2023-05-16 18:35:39 +02:00
auth Bump Go SDK to v0.12.0 (#540) 2023-07-03 11:46:45 +02:00
bundle Add development runs (#522) 2023-07-12 08:51:54 +02:00
configure Update configure command (#482) 2023-06-15 12:50:19 +00:00
fs Update cp help message to not require file scheme (#554) 2023-07-06 13:16:14 +02:00
root Support tab completion for profiles (#572) 2023-07-12 12:05:51 +02:00
sync Remove \r from new line print statments (#509) 2023-06-22 13:47:52 +02:00
version Use cmdio in version command for `--output` flag (#419) 2023-06-01 12:03:22 +02:00
workspace Fix secrets put-secret command (#545) 2023-07-05 17:30:54 +02:00