MCPcopy
hub / github.com/abiosoft/ishell / Close

Method Close

ishell.go:149–152  ·  view source on GitHub ↗

Close stops the shell (if required) and closes the shell's input. This should be called when done with reading inputs. Unlike `Stop`, a closed shell cannot be restarted.

()

Source from the content-addressed store, hash-verified

147// This should be called when done with reading inputs.
148// Unlike `Stop`, a closed shell cannot be restarted.
149func (s *Shell) Close() {
150 s.stop()
151 s.reader.scanner.Close()
152}
153
154func (s *Shell) prepareRun() {
155 if s.Active() {

Callers 1

mainFunction · 0.80

Calls 1

stopMethod · 0.95

Tested by

no test coverage detected