-
Notifications
You must be signed in to change notification settings - Fork 338
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
Fix interactive UI for git push using password protected ssh key #393
Conversation
…outro for push confirmation messages
4b35672
to
046cabe
Compare
@matscube so there is no way to keep the spinners? |
@di-sukharev |
please 🙏 |
there was a big refactoring in #391, not much got conflicted, but there is one file btw for the spinner, is there a way we can tell that spinner will break things, like in this case with ssh password? we could then not start it and fallback to |
If a child process is executed between If the processing between |
i see, so there is no way we know if the stdout gonna be interactive or not and thus we cant keep the spinner? |
I can't say for sure without looking closely at the specifications of Node.js stdin/stdout and the implementation of If the following technical hurdles can be overcome, it will be possible to achieve both spinner and input UI.
I plan to investigate when I have time. |
Cant stop you if you are interested in this, but wdyt about just living it
as a spinner for now, we still allow to input the password right and only
formatting is a problem? If so, i’d leave it as is, bc password is a rare
case
|
@di-sukharev |
@matscube lets close it, yep |
Overview
This fix is related to Issue #369 .
When using password protected ssh key, password input is required when pushing with git push in the oco command, but there was a problem that the input could not be entered smoothly.
After confirming the operation, it seems that the password input UI is obstructed by the spinner. (It is not always input failure and there may be cases where you can enter it successfully)
Fix
Removed spinner.
It was judged that it is better not to sandwich the process that requires stdout/stdin with the user during command execution with spinner.
Behavior before and after the fix
before_revision.mov
after_revision.mov