MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / MakeCmdWrap

Function MakeCmdWrap

pkg/shellexec/conninterface.go:44–51  ·  view source on GitHub ↗
(cmd *exec.Cmd, cmdPty pty.Pty, isShell bool)

Source from the content-addressed store, hash-verified

42}
43
44func MakeCmdWrap(cmd *exec.Cmd, cmdPty pty.Pty, isShell bool) CmdWrap {
45 return CmdWrap{
46 Cmd: cmd,
47 IsShell: isShell,
48 WaitOnce: &sync.Once{},
49 Pty: cmdPty,
50 }
51}
52
53func (cw CmdWrap) Kill() {
54 cw.Cmd.Process.Kill()

Callers 3

StartWslShellProcNoWshFunction · 0.85
StartWslShellProcFunction · 0.85
StartLocalShellProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected