MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / inputIsTty

Function inputIsTty

client/input.go:114–116  ·  view source on GitHub ↗

inputIsTty returns true iff we have an interactive prompt, where we can disable echo and request to repeat the password. If false, we can optimize for piped input from another command

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

GetPasswordFunction · 0.85
GetCheckPasswordFunction · 0.85
GetConfirmationFunction · 0.85
GetStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected