Skip to content

Commit 7b553fa

Browse files
committed
improve interactive Password Entry
1 parent 5d1add8 commit 7b553fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ func GetClient(ctx context.Context) (*api.Client, error) {
2727
fmt.Print("Enter Password:")
2828
bytepw, err := term.ReadPassword(int(syscall.Stdin))
2929
if err != nil {
30+
fmt.Println("\n")
3031
return nil, fmt.Errorf("Reading Password: %w", err)
3132
}
3233
userPassword = string(bytepw)
34+
fmt.Println("\n")
3335
}
3436

3537
client, err := api.NewClient(nil, "", serverAddress, userPrivateKey, userPassword)

0 commit comments

Comments
 (0)