terraform-provider-docker/vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
Manuel Vogel 8a4b0b15be
Update to docker to 18.09 (#152)
* updates travis to xenial and docker to 18.09
* updates docker sources to f25e0c6f
* updates the grpc sources to the latest version to be comtatible
Closes #114
2019-05-26 14:20:39 +02:00

17 lines
232 B
Go

// +build !appengine,!js,!windows,!nacl,!plan9
package logrus
import (
"io"
"os"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return isTerminal(int(v.Fd()))
default:
return false
}
}