readLine reads a single line from the centralized stdin reader, aborting on cancellation of the active operation (Ctrl+C). See readLineSignal.
()
| 345 | // readLine reads a single line from the centralized stdin reader, aborting on |
| 346 | // cancellation of the active operation (Ctrl+C). See readLineSignal. |
| 347 | func (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 "" |