File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ func main() {
105105 OutWriter : os .Stdout ,
106106 ErrWriter : os .Stderr ,
107107 Colored : true ,
108- Interactive : false ,
108+ Interactive : ! term . IsTerminal ( int ( os . Stdin . Fd ())) ,
109109 })
110110 if err != nil {
111111 multilog .Critical ("Could not set up output handler: " + errs .JoinMessage (err ))
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import (
2929 "github.com/ActiveState/cli/internal/runbits/errors"
3030 "github.com/ActiveState/cli/internal/runbits/panics"
3131 "github.com/ActiveState/cli/internal/updater"
32+ "golang.org/x/term"
3233)
3334
3435type Params struct {
@@ -90,7 +91,7 @@ func main() {
9091 OutWriter : os .Stdout ,
9192 ErrWriter : os .Stderr ,
9293 Colored : true ,
93- Interactive : false ,
94+ Interactive : ! term . IsTerminal ( int ( os . Stdin . Fd ())) ,
9495 })
9596 if err != nil {
9697 logging .Error ("Could not set up output handler: " + errs .JoinMessage (err ))
You can’t perform that action at this time.
0 commit comments