mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-02 06:41:18 +00:00
75513575be
* store dependency's in git * since we vendor ... rm tech-depts * aad make target 'vendor' to update vendor folder (manual task)
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
|
|
}
|
|
}
|