fix vendor directory

This commit is contained in:
Jeff
2019-09-04 14:04:37 +08:00
parent 289b8ebd2b
commit 70293cc6fd
94 changed files with 0 additions and 14018 deletions

View File

@@ -0,0 +1,19 @@
// +build !appengine,!js,!windows
package logrus
import (
"io"
"os"
"golang.org/x/crypto/ssh/terminal"
)
func checkIfTerminal(w io.Writer) bool {
switch v := w.(type) {
case *os.File:
return terminal.IsTerminal(int(v.Fd()))
default:
return false
}
}