fix package

This commit is contained in:
David Newhall II 2021-03-15 00:55:54 -07:00
parent e342ef955d
commit 681ecaf746
2 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,7 @@ import (
"strings"
"golang.org/x/crypto/bcrypt"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"
)
// PrintRawMetrics prints raw json from the UniFi Controller. This is currently
@ -41,7 +41,7 @@ func (u *UnifiPoller) PrintPasswordHash() (err error) {
if u.Flags.HashPW == "-" {
fmt.Print("Enter Password: ")
pwd, err = terminal.ReadPassword(int(os.Stdin.Fd()))
pwd, err = term.ReadPassword(int(os.Stdin.Fd()))
if err != nil {
return fmt.Errorf("reading stdin: %w", err)
}

View File

@ -5,6 +5,7 @@ go 1.15
require (
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
golift.io/cnfg v0.0.7
golift.io/version v0.0.2
)