MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakeSessionWrap

Function MakeSessionWrap

pkg/shellexec/conninterface.go:153–161  ·  view source on GitHub ↗
(session *ssh.Session, startCmd string, sessionPty pty.Pty)

Source from the content-addressed store, hash-verified

151}
152
153func 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
163func (sw SessionWrap) Kill() {
164 sw.Tty.Close()

Callers 2

StartRemoteShellProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected