| 49 | ) |
| 50 | |
| 51 | type 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 |
| 71 | func MakeShellController(tabId string, blockId string, controllerType string, connName string) Controller { |
nothing calls this directly
no outgoing calls
no test coverage detected