1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-20 10:59:21 +00:00

Initial Commit

This commit is contained in:
Alena Prokharchyk
2017-10-25 17:02:49 -07:00
commit 60574a70bb
54 changed files with 6626 additions and 0 deletions

15
vendor/github.com/Sirupsen/logrus/terminal_solaris.go generated vendored Normal file
View File

@@ -0,0 +1,15 @@
// +build solaris
package logrus
import (
"os"
"golang.org/x/sys/unix"
)
// IsTerminal returns true if the given file descriptor is a terminal.
func IsTerminal() bool {
_, err := unix.IoctlGetTermios(int(os.Stdout.Fd()), unix.TCGETA)
return err == nil
}