mirror of
https://gitea.com/gitea/runner.git
synced 2026-08-25 21:37:45 +00:00
ca648a37c8
* Upgrade docker to v19.03.7 * go mod vendor * golangci-lint 1.23.8
18 lines
219 B
Go
18 lines
219 B
Go
// +build !appengine,!js,!windows
|
|
|
|
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
|
|
}
|
|
}
|