Wait waits for the command to complete
()
| 83 | |
| 84 | // Wait waits for the command to complete |
| 85 | func (s *SSHProcessController) Wait() error { |
| 86 | s.once.Do(func() { |
| 87 | s.waitErr = s.session.Wait() |
| 88 | }) |
| 89 | return s.waitErr |
| 90 | } |
| 91 | |
| 92 | // Kill terminates the command |
| 93 | func (s *SSHProcessController) Kill() { |