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