()
| 152 | } |
| 153 | |
| 154 | func (s *Shell) prepareRun() { |
| 155 | if s.Active() { |
| 156 | return |
| 157 | } |
| 158 | if !s.customCompleter { |
| 159 | s.initCompleters() |
| 160 | } |
| 161 | s.activeMutex.Lock() |
| 162 | s.active = true |
| 163 | s.activeMutex.Unlock() |
| 164 | |
| 165 | s.haltChan = make(chan struct{}) |
| 166 | } |
| 167 | |
| 168 | func (s *Shell) run() { |
| 169 | shell: |
no test coverage detected