databricks-cli/cmd/auth
Andrew Nester aa9c2a1eab
Prompt for profile only in interactive mode ()
## 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
..
README.md Rename bricks -> databricks () 2023-05-16 18:35:39 +02:00
auth.go Remove dependency on global state for remaining commands () 2023-07-27 10:03:08 +00:00
env.go Always resolve .databrickscfg file () 2023-08-14 12:45:08 +00:00
login.go Prompt for profile only in interactive mode () 2023-09-21 12:38:45 +00:00
profiles.go Always resolve .databrickscfg file () 2023-08-14 12:45:08 +00:00
token.go Remove dependency on global state for remaining commands () 2023-07-27 10:03:08 +00:00

README.md

Auth challenge (happy path)

Simplified description of PKCE implementation:

Token refresh (happy path)