Skip to content

Commit

Permalink
Merge pull request #5 from CaptainCodeman/appengine
Browse files Browse the repository at this point in the history
Support for AppEngine classic
  • Loading branch information
mattn committed Dec 11, 2015
2 parents 3f7a673 + ca19903 commit 56b76bd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions isatty_appengine.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// +build appengine

package isatty

// IsTerminal returns true if the file descriptor is terminal which
// is always false on on appengine classic which is a sandboxed PaaS.
func IsTerminal(fd uintptr) bool {
return false
}
1 change: 1 addition & 0 deletions isatty_bsd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build darwin freebsd openbsd netbsd
// +build !appengine

package isatty

Expand Down
1 change: 1 addition & 0 deletions isatty_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build linux
// +build !appengine

package isatty

Expand Down
1 change: 1 addition & 0 deletions isatty_solaris.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build solaris
// +build !appengine

package isatty

Expand Down
1 change: 1 addition & 0 deletions isatty_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +build windows
// +build !appengine

package isatty

Expand Down

0 comments on commit 56b76bd

Please sign in to comment.