1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2024-12-04 04:00:21 +00:00
ceph-csi/vendor/github.com/mattn/go-isatty
dependabot[bot] 2131a84a53 rebase: bump github.com/hashicorp/go-retryablehttp from 0.7.1 to 0.7.7
Bumps [github.com/hashicorp/go-retryablehttp](https://github.com/hashicorp/go-retryablehttp) from 0.7.1 to 0.7.7.
- [Changelog](https://github.com/hashicorp/go-retryablehttp/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/go-retryablehttp/compare/v0.7.1...v0.7.7)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-retryablehttp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-25 14:24:10 +00:00
..
doc.go rebase: vendor dependencies for Vault API 2020-11-29 04:03:59 +00:00
go.test.sh rebase: vendor dependencies for Vault API 2020-11-29 04:03:59 +00:00
isatty_bsd.go rebase: bump github.com/hashicorp/go-retryablehttp from 0.7.1 to 0.7.7 2024-06-25 14:24:10 +00:00
isatty_others.go rebase: bump github.com/hashicorp/go-retryablehttp from 0.7.1 to 0.7.7 2024-06-25 14:24:10 +00:00
isatty_plan9.go rebase: vendor files required for kmip 2022-08-18 07:41:42 +00:00
isatty_solaris.go rebase: vendor files required for kmip 2022-08-18 07:41:42 +00:00
isatty_tcgets.go rebase: bump github.com/hashicorp/go-retryablehttp from 0.7.1 to 0.7.7 2024-06-25 14:24:10 +00:00
isatty_windows.go rebase: vendor files required for kmip 2022-08-18 07:41:42 +00:00
LICENSE rebase: vendor dependencies for Vault API 2020-11-29 04:03:59 +00:00
README.md rebase: vendor dependencies for Vault API 2020-11-29 04:03:59 +00:00

go-isatty

Godoc Reference Codecov Coverage Status Go Report Card

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 if isatty.IsCygwinTerminal(os.Stdout.Fd()) {
		fmt.Println("Is Cygwin/MSYS2 Terminal")
	} else {
		fmt.Println("Is Not Terminal")
	}
}

Installation

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

License

MIT

Author

Yasuhiro Matsumoto (a.k.a mattn)

Thanks