|
@@ -1318,7 +1318,7 @@ func NewCLI() *cobra.Command {
|
|
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
|
log.SetFlags(log.LstdFlags | log.Lshortfile)
|
|
cobra.EnableCommandSorting = false
|
|
cobra.EnableCommandSorting = false
|
|
|
|
|
|
- if runtime.GOOS == "windows" {
|
|
|
|
|
|
+ if runtime.GOOS == "windows" && term.IsTerminal(int(os.Stdout.Fd())) {
|
|
console.ConsoleFromFile(os.Stdin) //nolint:errcheck
|
|
console.ConsoleFromFile(os.Stdin) //nolint:errcheck
|
|
}
|
|
}
|
|
|
|
|