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

Function handleInput

ishell.go:232–245  ·  view source on GitHub ↗
(s *Shell, line []string)

Source from the content-addressed store, hash-verified

230}
231
232func handleInput(s *Shell, line []string) error {
233 handled, err := s.handleCommand(line)
234 if handled || err != nil {
235 return err
236 }
237
238 // Generic handler
239 if s.generic == nil {
240 return errNoHandler
241 }
242 c := newContext(s, nil, line)
243 s.generic(c)
244 return c.err
245}
246
247func handleInterrupt(s *Shell, line []string) error {
248 if s.interrupt == nil {

Callers 2

runMethod · 0.85
ProcessMethod · 0.85

Calls 2

newContextFunction · 0.85
handleCommandMethod · 0.80

Tested by

no test coverage detected