go.mod: github.com/sirupsen/logrus v1.8.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-03-12 15:57:03 +01:00
parent e27c48b391
commit 59a6259f8c
44 changed files with 1286 additions and 1877 deletions

View File

@ -1,18 +1,16 @@
// +build !appengine,!gopherjs
// +build !appengine,!js,!windows,!nacl,!plan9
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()))
return isTerminal(int(v.Fd()))
default:
return false
}