change docker client sdk version

This commit is contained in:
littlebeer2100
2018-06-16 15:35:17 +08:00
parent 77930ea0a7
commit a83c797df3
277 changed files with 10565 additions and 5979 deletions

View 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
}
}