"src/graph/sampling/vscode:/vscode.git/clone" did not exist on "4135b1bd5b2b880719c7c62b06d695a4acea64bb"
Unverified Commit da20786e authored by Daniel Hiltgen's avatar Daniel Hiltgen Committed by GitHub
Browse files

Merge pull request #3068 from dhiltgen/win_pipe

Use stdin for term discovery on windows
parents 5ce997a7 c1a81c6f
...@@ -900,8 +900,7 @@ func NewCLI() *cobra.Command { ...@@ -900,8 +900,7 @@ func NewCLI() *cobra.Command {
cobra.EnableCommandSorting = false cobra.EnableCommandSorting = false
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
// Enable colorful ANSI escape code in Windows terminal (disabled by default) console.ConsoleFromFile(os.Stdin) //nolint:errcheck
console.ConsoleFromFile(os.Stdout) //nolint:errcheck
} }
rootCmd := &cobra.Command{ rootCmd := &cobra.Command{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment