vendor: revendor

This commit is contained in:
Eric Stroczynski
2017-07-25 13:49:34 -07:00
parent 4a88d0641a
commit d9778fda4a
22 changed files with 319 additions and 178 deletions

21
vendor/github.com/sirupsen/logrus/terminal_solaris.go generated vendored Normal file
View File

@@ -0,0 +1,21 @@
// +build solaris,!appengine
package logrus
import (
"io"
"os"
"golang.org/x/sys/unix"
)
// IsTerminal returns true if the given file descriptor is a terminal.
func IsTerminal(f io.Writer) bool {
switch v := f.(type) {
case *os.File:
_, err := unix.IoctlGetTermios(int(v.Fd()), unix.TCGETA)
return err == nil
default:
return false
}
}