(session *ssh.Session, startCmd string, sessionPty pty.Pty)
| 151 | } |
| 152 | |
| 153 | func MakeSessionWrap(session *ssh.Session, startCmd string, sessionPty pty.Pty) SessionWrap { |
| 154 | return SessionWrap{ |
| 155 | Session: session, |
| 156 | StartCmd: startCmd, |
| 157 | Tty: sessionPty, |
| 158 | WaitOnce: &sync.Once{}, |
| 159 | Pty: sessionPty, |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | func (sw SessionWrap) Kill() { |
| 164 | sw.Tty.Close() |
no outgoing calls
no test coverage detected