MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / isTerminal

Function isTerminal

internal/cli/launch.go:305–311  ·  view source on GitHub ↗
(file *os.File)

Source from the content-addressed store, hash-verified

303}
304
305func isTerminal(file *os.File) bool {
306 info, err := file.Stat()
307 if err != nil {
308 return false
309 }
310 return info.Mode()&os.ModeCharDevice != 0
311}
312
313// ensure pathutil import is used (kept for future cache-dir overrides
314// done by tests via CAM_CACHE_DIR).

Callers 4

runProviderWizardFunction · 0.85
outIsTTYFunction · 0.85
runToolMenuFunction · 0.85
runLaunchWizardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected