mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2026-02-16 17:19:57 -05:00
* 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
17 lines
232 B
Go
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
|
|
}
|
|
}
|