MCPcopy Create free account
hub / github.com/openclaw/gogcli / stdinIsTerminal

Function stdinIsTerminal

internal/cmd/runtime.go:402–405  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

400}
401
402func stdinIsTerminal(ctx context.Context) bool {
403 file, ok := stdinReader(ctx).(*os.File)
404 return ok && termutil.IsTerminal(file)
405}
406
407func startAuthManageServer(ctx context.Context, options googleauth.ManageServerOptions) error {
408 if runtime, ok := app.FromContext(ctx); ok && runtime.Auth.StartManageServer != nil {

Callers 5

resolveContentInputFunction · 0.85
RunMethod · 0.85
addKeyringEnvChecksFunction · 0.85
collectExpressionsMethod · 0.85

Calls 2

IsTerminalFunction · 0.92
stdinReaderFunction · 0.85

Tested by

no test coverage detected