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

Method IsTerminal

commands/execenv/env.go:43–43  ·  view source on GitHub ↗

IsTerminal tells if the input is a user terminal (rather than a buffer, a pipe ...), which tells if we can use interactive features.

()

Source from the content-addressed store, hash-verified

41 // IsTerminal tells if the input is a user terminal (rather than a buffer,
42 // a pipe ...), which tells if we can use interactive features.
43 IsTerminal() bool
44
45 // ForceIsTerminal allow to force the returned value of IsTerminal
46 // This only works in test scenario.

Callers 3

runBridgeAuthAddTokenFunction · 0.65
isTerminalFunction · 0.65
runBugFunction · 0.65

Implementers 4

incommands/execenv/env.go
outcommands/execenv/env.go
TestIncommands/execenv/env_testing.go
TestOutcommands/execenv/env_testing.go

Calls

no outgoing calls

Tested by

no test coverage detected