MCPcopy Index your code
hub / github.com/abiosoft/ishell / readLine

Method readLine

ishell.go:283–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

281}
282
283func (s *Shell) readLine() (line string, err error) {
284 consumer := make(chan lineString)
285 defer close(consumer)
286 go s.reader.readLine(consumer)
287 ls := <-consumer
288 return ls.line, ls.err
289}
290
291func (s *Shell) read() ([]string, error) {
292 s.rawArgs = nil

Callers 4

readMultiLinesFuncMethod · 0.95
ReadLineMethod · 0.45
ReadLineErrMethod · 0.45
ReadLineWithDefaultMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected