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

Function interruptFunc

functions.go:41–47  ·  view source on GitHub ↗
(c *Context, count int, line string)

Source from the content-addressed store, hash-verified

39}
40
41func interruptFunc(c *Context, count int, line string) {
42 if count >= 2 {
43 c.Println("Interrupted")
44 os.Exit(1)
45 }
46 c.Println("Input Ctrl-c once more to exit")
47}

Callers

nothing calls this directly

Calls 1

PrintlnMethod · 0.65

Tested by

no test coverage detected