(s *Shell, line []string)
| 230 | } |
| 231 | |
| 232 | func 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 | |
| 247 | func handleInterrupt(s *Shell, line []string) error { |
| 248 | if s.interrupt == nil { |
no test coverage detected