databricks-cli/cmd
Andrew Nester aa9c2a1eab
Prompt for profile only in interactive mode (#788)
## Changes
Do not prompt for profiles if not in interactive mode

## Tests
Running sample Go code

```
cmd := exec.Command("databricks", "auth", "login", "--host", "***")
out, err := cmd.CombinedOutput()
```
Before the change
```
Error: ^D

exit status 1
```

After
```
No error (empty output)
```
2023-09-21 12:38:45 +00:00
..
account Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
api Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
auth Prompt for profile only in interactive mode (#788) 2023-09-21 12:38:45 +00:00
bundle Add documentation link bundle command group description (#770) 2023-09-12 13:38:43 +00:00
configure Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
fs Remove dependency on global state for remaining commands (#613) 2023-07-27 10:03:08 +00:00
root Run environment related tests in a pristine environment (#769) 2023-09-12 13:28:53 +00:00
sync Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00
version Added description for version command (#737) 2023-09-06 08:41:47 +00:00
workspace Update Go SDK to v0.19.0 (#729) 2023-09-05 09:43:57 +00:00
cmd.go Consolidate environment variable interaction (#747) 2023-09-11 08:18:43 +00:00