We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b01f8 commit db69989Copy full SHA for db69989
hoverctl/cmd/utils.go
@@ -3,13 +3,11 @@ package cmd
3
import (
4
"bufio"
5
"fmt"
6
- "os"
7
- "strings"
8
- "syscall"
9
-
10
"github.com/SpectoLabs/hoverfly/hoverctl/configuration"
11
"github.com/olekukonko/tablewriter"
12
"golang.org/x/crypto/ssh/terminal"
+ "os"
+ "strings"
13
)
14
15
func handleIfError(err error) {
@@ -59,7 +57,7 @@ func askForInput(value string, sensitive bool) string {
59
57
for {
60
58
fmt.Printf(value + ": ")
61
if sensitive {
62
- responseBytes, err := terminal.ReadPassword(syscall.Stdin)
+ responseBytes, err := terminal.ReadPassword(int(os.Stdin.Fd()))
63
handleIfError(err)
64
fmt.Println("")
65
0 commit comments