(name: string, data: string)
| 183 | } |
| 184 | |
| 185 | export function sendInput(name: string, data: string): boolean { |
| 186 | const proc = processes.get(name); |
| 187 | if (!proc || proc.exitCode !== null) return false; |
| 188 | proc.child.stdin?.write(data); |
| 189 | return true; |
| 190 | } |
| 191 | |
| 192 | function infoFor(proc: ManagedProcess): ProcessInfo { |
| 193 | return { |