We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41a4b93 + c2cd4c3 commit d58b2bbCopy full SHA for d58b2bb
1 file changed
credential/credential.go
@@ -5,7 +5,6 @@ import (
5
"errors"
6
"fmt"
7
"os"
8
- "syscall"
9
"time"
10
11
"github.com/walkersumida/aws-sso-google/path"
@@ -177,7 +176,7 @@ func (c *Credential) Output() (string, error) {
177
176
178
// Println prints a message to stdout if it is a terminal, otherwise it prints the credentials.
179
func Println(credentials string) {
180
- if term.IsTerminal(syscall.Stdout) {
+ if term.IsTerminal(int(os.Stdout.Fd())) {
181
fmt.Println("Login successful")
182
} else {
183
fmt.Println(credentials)
0 commit comments