MCPcopy
hub / github.com/wavetermdev/waveterm / ShellController

Struct ShellController

pkg/blockcontroller/shellcontroller.go:51–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49)
50
51type ShellController struct {
52 Lock *sync.Mutex
53
54 // shared fields
55 ControllerType string
56 TabId string
57 BlockId string
58 ConnName string
59 BlockDef *waveobj.BlockDef
60 RunLock *atomic.Bool
61 ProcStatus string
62 ProcExitCode int
63 VersionTs utilds.VersionTs
64
65 // for shell/cmd
66 ShellProc *shellexec.ShellProc
67 ShellInputCh chan *BlockInputUnion
68}
69
70// Constructor that returns the Controller interface
71func MakeShellController(tabId string, blockId string, controllerType string, connName string) Controller {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected