MCPcopy
hub / github.com/basecamp/once / isTerminal

Function isTerminal

internal/command/cli_progress.go:133–139  ·  view source on GitHub ↗

Helpers

()

Source from the content-addressed store, hash-verified

131// Helpers
132
133func isTerminal() bool {
134 fi, err := os.Stdout.Stat()
135 if err != nil {
136 return false
137 }
138 return fi.Mode()&os.ModeCharDevice != 0
139}

Callers 1

runWithProgressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…