Skip to content

Commit

Permalink
Switched to golang.org/x/term for terminal support
Browse files Browse the repository at this point in the history
  • Loading branch information
ctberthiaume committed Jul 12, 2021
1 parent 7dfc4c2 commit e5259d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/seaflow-transfer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"time"

"github.com/armbrustlab/seaflow-transfer/internal/fs"
"golang.org/x/crypto/ssh/terminal"
"golang.org/x/term"
)

const versionStr string = "v0.4.0"
const versionStr string = "v0.4.1"

var (
srcRoot string // SRCROOT
Expand Down Expand Up @@ -41,7 +41,7 @@ func init() {
}
if sshPassword == "" && (srcAddress != "" || dstAddress != "") {
fmt.Printf("enter SSH password: ")
b, err := terminal.ReadPassword(syscall.Stdin)
b, err := term.ReadPassword(syscall.Stdin)
if err != nil {
log.Fatal(err)
}
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ require (
github.com/stretchr/testify v1.7.0
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b
golang.org/x/sys v0.0.0-20210316164454-77fc1eacc6aa // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

0 comments on commit e5259d3

Please sign in to comment.