diff --git a/sp/commands/create.go b/sp/commands/create.go index f904665..6722c41 100644 --- a/sp/commands/create.go +++ b/sp/commands/create.go @@ -84,6 +84,7 @@ password.`, if copypass { check(clipboard.WriteAll(ci.Password)) + fmt.Println("Wrote password to clipboard.") } } else { prompt := &survey.Password{Message: "Password: "} @@ -126,6 +127,7 @@ password.`, check(err) check(clipboard.WriteAll(otp)) + fmt.Println("Wrote one time password to clipboard.") prompt = &survey.Confirm{Message: "Anotha one?", Default: true} check(survey.AskOne(prompt, ©otp, nil)) @@ -135,6 +137,7 @@ password.`, check(err) check(clipboard.WriteAll(otp)) + fmt.Println("Wrote one time password to clipboard.") } } } @@ -157,6 +160,7 @@ password.`, if cleancb { check(clipboard.WriteAll(" ")) + fmt.Println("Clipboard cleared.") } }, } diff --git a/sp/commands/get.go b/sp/commands/get.go index c8fb5e4..8f616ee 100644 --- a/sp/commands/get.go +++ b/sp/commands/get.go @@ -88,6 +88,7 @@ decrypting password.`, if cleancb { check(clipboard.WriteAll(" ")) + fmt.Println("Clipboard cleared.") } }, } diff --git a/sp/commands/update.go b/sp/commands/update.go index a212d06..ad874bf 100644 --- a/sp/commands/update.go +++ b/sp/commands/update.go @@ -117,6 +117,7 @@ password.`, if copypass { check(clipboard.WriteAll(ci.Password)) + fmt.Println("Wrote one time password to clipboard.") } } else { prompt := &survey.Password{Message: "Password: "} @@ -160,6 +161,7 @@ password.`, check(err) check(clipboard.WriteAll(otp)) + fmt.Println("Wrote one time password to clipboard.") prompt = &survey.Confirm{Message: "Anotha one?", Default: true} check(survey.AskOne(prompt, ©otp, nil)) @@ -169,6 +171,7 @@ password.`, check(err) check(clipboard.WriteAll(otp)) + fmt.Println("Wrote one time password to clipboard.") } } } @@ -186,6 +189,7 @@ password.`, if cleancb { check(clipboard.WriteAll(" ")) + fmt.Println("Clipboard cleared.") } }, }