-
Notifications
You must be signed in to change notification settings - Fork 2
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
Support non-TTY Stdin for Confirmation prompts #127
Conversation
b09bd2b
to
9299947
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple small comments/nits but otherwise LGTM
## [8.0.8] - 2023-04-19 | ||
|
||
### Fixed | ||
- Fixed piping input to `conjur init` confirmation prompts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be worth checking with @szh if he will be re-releasing v8.0.7 with this fix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I released 8.0.7 yesterday but am hoping to squeeze in 8.0.0 if I can before the end of the week
9299947
to
066a6dc
Compare
Being unable to pipe responses to prompts is a known shortcoming of Survey: AlecAivazis/survey#394. We frequently pipe 'yes' responses to CLI confirmation prompts, and this commit supports ONLY those cases.
066a6dc
to
f0eedb4
Compare
Code Climate has analyzed commit f0eedb4 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 81.4% (0.0% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Desired Outcome
Being unable to pipe responses to prompts is a known shortcoming of Survey: AlecAivazis/survey#394. We frequently pipe 'yes' responses to CLI confirmation prompts, and this commit supports ONLY those cases.
Implemented Changes
func basicConfirm(message string) bool
, which uses standardfmt
functions to prompt and collect confirmation responses.Connected Issue/Story
N/A
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be
merged.
Changelog
CHANGELOG update
Test coverage
changes, or
Documentation
README
s) were updated in this PRBehavior
Security