diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/mattn/go-colorable/colorable_appengine.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/mattn/go-colorable/colorable_appengine.go')
-rw-r--r-- | vendor/github.com/mattn/go-colorable/colorable_appengine.go | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/github.com/mattn/go-colorable/colorable_appengine.go b/vendor/github.com/mattn/go-colorable/colorable_appengine.go new file mode 100644 index 0000000..1f28d77 --- /dev/null +++ b/vendor/github.com/mattn/go-colorable/colorable_appengine.go | |||
@@ -0,0 +1,29 @@ | |||
1 | // +build appengine | ||
2 | |||
3 | package colorable | ||
4 | |||
5 | import ( | ||
6 | "io" | ||
7 | "os" | ||
8 | |||
9 | _ "github.com/mattn/go-isatty" | ||
10 | ) | ||
11 | |||
12 | // NewColorable return new instance of Writer which handle escape sequence. | ||
13 | func NewColorable(file *os.File) io.Writer { | ||
14 | if file == nil { | ||
15 | panic("nil passed instead of *os.File to NewColorable()") | ||
16 | } | ||
17 | |||
18 | return file | ||
19 | } | ||
20 | |||
21 | // NewColorableStdout return new instance of Writer which handle escape sequence for stdout. | ||
22 | func NewColorableStdout() io.Writer { | ||
23 | return os.Stdout | ||
24 | } | ||
25 | |||
26 | // NewColorableStderr return new instance of Writer which handle escape sequence for stderr. | ||
27 | func NewColorableStderr() io.Writer { | ||
28 | return os.Stderr | ||
29 | } | ||