Mercurial > projects > sievemgr
diff cmd/sievemgr/common.go @ 11:29769b9e2f09
Switch to golang.org/x/term module
Switch from golang.org/x/crypto/ssh/terminal to the new golang.org/x/term
module.
author | Guido Berhoerster <guido+sievemgr@berhoerster.name> |
---|---|
date | Sat, 12 Dec 2020 20:44:35 +0100 |
parents | 4dff4c3f0fbb |
children | fc5e6970a0d5 |
line wrap: on
line diff
--- a/cmd/sievemgr/common.go Thu Dec 03 13:52:28 2020 +0100 +++ b/cmd/sievemgr/common.go Sat Dec 12 20:44:35 2020 +0100 @@ -34,7 +34,7 @@ "go.guido-berhoerster.org/managesieve" "go.guido-berhoerster.org/sievemgr/cmd/sievemgr/internal/config" - "golang.org/x/crypto/ssh/terminal" + "golang.org/x/term" ) var errTooBig = errors.New("too big") @@ -77,7 +77,7 @@ } io.WriteString(w, "Password: ") - rawPassword, err := terminal.ReadPassword(fd) + rawPassword, err := term.ReadPassword(fd) io.WriteString(w, "\n") if err != nil { return fmt.Errorf("failed to read password: %s", err)