From 4bfaf12de77b5ae4d5a535064d3837e35fa92244 Mon Sep 17 00:00:00 2001 From: Mariano Uvalle Date: Fri, 10 Nov 2023 16:42:47 +0000 Subject: [PATCH] Prompt for password input --- pkg/input/password.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/input/password.go b/pkg/input/password.go index 7ec3050..41757d5 100644 --- a/pkg/input/password.go +++ b/pkg/input/password.go @@ -9,6 +9,7 @@ import ( // ReadPassword reads a single line of text from the terminal withouth echoing it out. func ReadPassword() string { + fmt.Println("Enter your password:") raw, err := term.ReadPassword(int(os.Stdin.Fd())) if err != nil { panic(fmt.Sprintf("could not reat password from the terminal: %s", err.Error()))