Skip to content

Commit 979c6e6

Browse files
committed
get file descriptor via os.Stderr.Fd() (fixes windows build)
1 parent 36f75a8 commit 979c6e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func main() {
5555
flagWatch := pflag.Lookup("watch")
5656
pflag.BoolVarP(&options.Minify, "minify", "m", false, "minify generated code")
5757
flagMinify := pflag.Lookup("minify")
58-
pflag.BoolVar(&options.Color, "color", terminal.IsTerminal(syscall.Stderr) && os.Getenv("TERM") != "dumb", "colored output")
58+
pflag.BoolVar(&options.Color, "color", terminal.IsTerminal(int(os.Stderr.Fd())) && os.Getenv("TERM") != "dumb", "colored output")
5959
flagColor := pflag.Lookup("color")
6060
tags := pflag.String("tags", "", "a list of build tags to consider satisfied during the build")
6161
flagTags := pflag.Lookup("tags")

0 commit comments

Comments
 (0)