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

Function handleInterrupt

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

Source from the content-addressed store, hash-verified

245}
246
247func handleInterrupt(s *Shell, line []string) error {
248 if s.interrupt == nil {
249 return errNoInterruptHandler
250 }
251 c := newContext(s, nil, line)
252 s.interruptCount++
253 s.interrupt(c, s.interruptCount, strings.Join(line, " "))
254 return c.err
255}
256
257func handleEOF(s *Shell) error {
258 c := newContext(s, nil, nil)

Callers 1

runMethod · 0.85

Calls 1

newContextFunction · 0.85

Tested by

no test coverage detected