Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

fix(credential-processs): Remove initial tty available check #44

Merged
merged 1 commit into from
Aug 25, 2021
Merged

fix(credential-processs): Remove initial tty available check #44

merged 1 commit into from
Aug 25, 2021

Conversation

rtkaheller
Copy link
Contributor

Description: Rather than check for the ability to create a tty
connection and failing if we can't, continue as if we have one. In the
case where we have a valid session, we don't need the tty, so the
credential-process command will continue to work. If we need to use the
tty (because no valid session), we already are raising an error, so let
it fail then.

Testing: bazel test //... and manually testing locally

**Description:** Rather than check for the ability to create a tty
connection and failing if we can't, continue as if we have one. In the
case where we have a valid session, we don't need the tty, so the
credential-process command will continue to work. If we need to use the
tty (because no valid session), we already are raising an error, so let
it fail then.

**Testing:** `bazel test //...` and manually testing locally
}

return console.NewConsoleReader(true)
return console.NewConsoleReader(limited)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should just impact the non-Mac cases, as the darwin logic handles the applescript selection.

@rtkaheller rtkaheller merged commit 6e08761 into rtkwlf:main Aug 25, 2021
@rtkaheller rtkaheller deleted the deferTtyOpening branch August 25, 2021 13:56
rtkaheller added a commit that referenced this pull request Aug 25, 2021
**Description:** Missed running go fmt against the changes in #44. Fix
it so CI will pass.

**Testing:** None
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants