Skip to content

Commit db69989

Browse files
committed
Fix windows docker build
1 parent 36b01f8 commit db69989

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

hoverctl/cmd/utils.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ package cmd
33
import (
44
"bufio"
55
"fmt"
6-
"os"
7-
"strings"
8-
"syscall"
9-
106
"github.com/SpectoLabs/hoverfly/hoverctl/configuration"
117
"github.com/olekukonko/tablewriter"
128
"golang.org/x/crypto/ssh/terminal"
9+
"os"
10+
"strings"
1311
)
1412

1513
func handleIfError(err error) {
@@ -59,7 +57,7 @@ func askForInput(value string, sensitive bool) string {
5957
for {
6058
fmt.Printf(value + ": ")
6159
if sensitive {
62-
responseBytes, err := terminal.ReadPassword(syscall.Stdin)
60+
responseBytes, err := terminal.ReadPassword(int(os.Stdin.Fd()))
6361
handleIfError(err)
6462
fmt.Println("")
6563

0 commit comments

Comments
 (0)