Save two more kay strokes (#1708)

This commit is contained in:
Yuxuan Lu 2023-06-07 04:24:53 +08:00 committed by GitHub
parent e18699bda5
commit 4f3bfd1025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,6 +203,7 @@ impl CommonOpt {
ToClientError::NeedLogin(username) => {
if !Confirm::new()
.with_prompt("Would you like to login again?")
.default(true)
.interact()
.expect("Failed to interact with interactive session")
{
@ -223,6 +224,7 @@ impl CommonOpt {
ToClientError::NeedReauth(username) => {
if !Confirm::new()
.with_prompt("Would you like to re-authenticate?")
.default(true)
.interact()
.expect("Failed to interact with interactive session")
{