MCPcopy Create free account
hub / github.com/git-bug/git-bug / IsTerminal

Method IsTerminal

commands/execenv/env.go:86–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (i in) IsTerminal() bool {
87 if f, ok := i.Reader.(*os.File); ok {
88 return isTerminal(f)
89 }
90 return false
91}
92
93func (i in) ForceIsTerminal(_ bool) {
94 panic("only work with a test env")

Callers

nothing calls this directly

Calls 1

isTerminalFunction · 0.85

Tested by

no test coverage detected