minio/vendor/github.com/mattn/go-isatty
Harshavardhana c4faf47e64 First time mode for controller
- Upon first time invocation ``minio controller`` would create access keys and secret id
- Upon request passing 'keys' arg ``minio controller`` would provide the keys
- Add colorized notification
2015-10-04 16:42:16 -07:00
..
LICENSE First time mode for controller 2015-10-04 16:42:16 -07:00
README.md First time mode for controller 2015-10-04 16:42:16 -07:00
doc.go First time mode for controller 2015-10-04 16:42:16 -07:00
isatty_bsd.go First time mode for controller 2015-10-04 16:42:16 -07:00
isatty_linux.go First time mode for controller 2015-10-04 16:42:16 -07:00
isatty_windows.go First time mode for controller 2015-10-04 16:42:16 -07:00

README.md

go-isatty

isatty for golang

Usage

package main

import (
	"fmt"
	"github.com/mattn/go-isatty"
	"os"
)

func main() {
	if isatty.IsTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Terminal")
	} else {
		fmt.Println("Is Not Terminal")
	}
}

Installation

$ go get github.com/mattn/go-isatty

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)