mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-08-02 11:30:28 +00:00
cli.test: colorize the success/failure
updating and adding vendored source to do it Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
03270d3d9e
commit
37d776ac40
408 changed files with 170562 additions and 132 deletions
19
vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
generated
vendored
Normal file
19
vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go
generated
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
// +build !appengine,!gopherjs
|
||||
|
||||
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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue