Conversation
Codecov Report
|
|
We have an existing pattern for requesting user input (that I only encountered recently myself): I genuinely do not know, but I presume there are benefits to this method that might be worth looking into. |
This is for consistency with other commands which use prompts, all of which require "yes" rather than "y" to confirm. We also migrate the login command to use UIInput, which now supports securely asking for passwords or secrets via the speakeasy library.
mildwonkey
left a comment
There was a problem hiding this comment.
This looks good, thanks for digging into command.UIInput!
PS: It looks like you ran go mod tidy, which I completely forgot to run before merging my recent library-bumping PR. Thanks and sorry for the oversight!
pselle
left a comment
There was a problem hiding this comment.
I also appreciate this branch name
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |


This is for consistency with other commands which use prompts, all of which require "yes" rather than "y" to confirm. Fixes #24514.
After review, this change also includes adding secret/password entry to the
UIInputinterface and implementation, using the same logic as in mitchellh/cli:terraform/command/ui_input.go
Lines 135 to 140 in 5a74460
Also includes an exciting new horizontal rule in the UI to fix some confusing spacing. Screenshot:
Screenshots
Password/secret prompt (iTerm uses the 🔑 icon to indicate that echo is off):

Login completed, without the token being displayed:
