-
Notifications
You must be signed in to change notification settings - Fork 172
Confirmation prompt not working on Windows #347
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
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
This is probably related to this code: Lines 16 to 23 in 931373a
Probably the different line endings on Windows are the problem. It would need However, it seems like there is no |
Yeah, I don't think there is a constant. But this would presumably work:
|
Good idea! Wanna try that out and if it works, create a PR? |
Will do. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Thanks for the reminder, StaleBot. I'm struggling to find time for this. May or may not get to it. Sorry about that sh0rez. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still a problem in the most recent release and should be re-opened. |
This fixes confirmation promts on windows by scanning for a line of input and comparing that to the desired prompt. term.Confirm(...) is refactored slightly to make it easier to test. Fixes grafana#347
This fixes confirmation prompts on windows by scanning for a line of input and comparing that to the desired prompt. term.Confirm(...) is refactored slightly to make it easier to test. Fixes grafana#347
This fixes confirmation prompts on windows by scanning for a line of input and comparing that to the desired prompt. term.Confirm(...) is refactored slightly to make it easier to test. Fixes #347
Nice @sh0rez . Sorry I never got time to attempt doing this for you! |
Here's an example (running from Windows Powershell)
Notice that when I type "yes",
tk
replies with "aborted by user".A (temporary) workaround is to add the
--dangerous-auto-approve
flag. (I like the name, by the way!)The text was updated successfully, but these errors were encountered: