Skip to content

Commit

Permalink
fix(pkg/commands): readPassword support for windows (#1089)
Browse files Browse the repository at this point in the history
fixes #1060 (maybe). @ekleiner to verify :)
  • Loading branch information
thehowl committed Aug 31, 2023
1 parent debf7d9 commit 236c112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tm2/pkg/commands/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package commands

import (
"errors"
"os"
"strings"
"syscall"

"golang.org/x/term"
)
Expand Down Expand Up @@ -39,7 +39,7 @@ func (io *IO) readLine() (string, error) {
// readPassword reads the password from a terminal
// without local echo
func readPassword() (string, error) {
fd := syscall.Stdin
fd := int(os.Stdin.Fd())

inputPass, err := term.ReadPassword(fd)
if err != nil {
Expand Down

0 comments on commit 236c112

Please sign in to comment.