- Fix issue #94

- Fix linter
- Remove useless code/deadcode
This commit is contained in:
Nicolas JUHEL
2021-04-13 13:08:49 +02:00
parent 499b5ee613
commit dbb443eb65
48 changed files with 673 additions and 1418 deletions

View File

@@ -33,7 +33,7 @@ import (
"strconv"
"syscall"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"
)
func printPrompt(text string) {
@@ -87,7 +87,7 @@ func PromptBool(text string) (bool, error) {
func PromptPassword(text string) (string, error) {
printPrompt(text)
//nolint #unconvert
res, err := terminal.ReadPassword(int(syscall.Stdin))
res, err := term.ReadPassword(int(syscall.Stdin))
fmt.Printf("\n")
return string(res), err