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

Function GetConfirmation

client/input.go:79–96  ·  view source on GitHub ↗

GetConfirmation will request user give the confirmation from stdin. "y", "Y", "yes", "YES", and "Yes" all count as confirmations. If the input is not recognized, it will ask again.

(prompt string, buf *bufio.Reader)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

handleTrustNodeFunction · 0.85

Calls 2

inputIsTtyFunction · 0.85
readLineFromBufFunction · 0.85

Tested by

no test coverage detected