Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt for profile only in interactive mode #788

Merged
merged 2 commits into from
Sep 21, 2023
Merged

Conversation

andrewnester
Copy link
Contributor

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)

@andrewnester andrewnester added this pull request to the merge queue Sep 21, 2023
Merged via the queue into main with commit aa9c2a1 Sep 21, 2023
4 checks passed
@andrewnester andrewnester deleted the no-prompt-auth branch September 21, 2023 12:46
andrewnester added a commit that referenced this pull request Sep 21, 2023
CLI:
 * Prompt for profile only in interactive mode ([#788](#788)).

Internal:
 * Added setup Python action ([#789](#789)).
@andrewnester andrewnester mentioned this pull request Sep 21, 2023
github-merge-queue bot pushed a commit that referenced this pull request Sep 21, 2023
CLI:
* Prompt for profile only in interactive mode
([#788](#788)).

Internal:
* Added setup Python action
([#789](#789)).
hectorcast-db pushed a commit that referenced this pull request Oct 13, 2023
## 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)
```
hectorcast-db pushed a commit that referenced this pull request Oct 13, 2023
CLI:
* Prompt for profile only in interactive mode
([#788](#788)).

Internal:
* Added setup Python action
([#789](#789)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants