summaryrefslogtreecommitdiff
path: root/cli.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli.go')
-rw-r--r--cli.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli.go b/cli.go
index c9cccf4..34941b4 100644
--- a/cli.go
+++ b/cli.go
@@ -16,7 +16,7 @@ import (
"github.com/shuLhan/share/lib/totp"
"golang.org/x/crypto/ssh"
- "golang.org/x/crypto/ssh/terminal"
+ "golang.org/x/term"
)
//go:embed README.adoc
@@ -116,7 +116,7 @@ func (cli *Cli) loadPrivateKey(privateKeyFile string, pass []byte) (
stdin = int(os.Stdin.Fd())
- pass, err = terminal.ReadPassword(stdin)
+ pass, err = term.ReadPassword(stdin)
fmt.Println()
if err != nil {
return nil, fmt.Errorf(`%s %q: %w`, logp, privateKeyFile, err)