MCPcopy Create free account
hub / github.com/diillson/chatcli / readLine

Method readLine

cli/agent_mode.go:347–349  ·  view source on GitHub ↗

readLine reads a single line from the centralized stdin reader, aborting on cancellation of the active operation (Ctrl+C). See readLineSignal.

()

Source from the content-addressed store, hash-verified

345// readLine reads a single line from the centralized stdin reader, aborting on
346// cancellation of the active operation (Ctrl+C). See readLineSignal.
347func (a *AgentMode) readLine() string {
348 return a.readLineSignal(a.currentCancelSignal())
349}
350
351// readLineSignal reads a single line from the centralized stdin reader and
352// returns it, or returns "" the moment the cancel channel fires. Returning ""

Callers 6

getMultilineInputMethod · 0.95
cmdBatchExecuteMethod · 0.95
getCriticalInputMethod · 0.95
TestReadLine_UnattendedFunction · 0.95
getInputMethod · 0.95

Calls 2

readLineSignalMethod · 0.95
currentCancelSignalMethod · 0.95

Tested by 2

TestReadLine_UnattendedFunction · 0.76