Always enable color on Windows since tty check doesn't work well
This commit is contained in:
parent
24ecb1ae70
commit
c3229aaef1
|
@ -3,6 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"code.google.com/p/go.crypto/ssh/terminal"
|
"code.google.com/p/go.crypto/ssh/terminal"
|
||||||
"github.com/hashicorp/terraform/command"
|
"github.com/hashicorp/terraform/command"
|
||||||
|
@ -28,7 +29,8 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
meta := command.Meta{
|
meta := command.Meta{
|
||||||
Color: terminal.IsTerminal(int(os.Stdout.Fd())),
|
Color: runtime.GOOS == "windows" ||
|
||||||
|
terminal.IsTerminal(int(os.Stdout.Fd())),
|
||||||
ContextOpts: &ContextOpts,
|
ContextOpts: &ContextOpts,
|
||||||
Ui: Ui,
|
Ui: Ui,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue