(prefix, stream)
| 159 | |
| 160 | // Helper function to handle streaming output |
| 161 | const streamOutput = (prefix, stream) => { |
| 162 | stream.on('data', data => { |
| 163 | process.stdout.write(`[${prefix}] ${data}`) |
| 164 | }) |
| 165 | |
| 166 | stream.on('error', data => { |
| 167 | process.stderr.write(`[${prefix}] ${data}`) |
| 168 | }) |
| 169 | } |
| 170 | |
| 171 | // Spawn 'go run ./cmd/ttn-lw-stack start' |
| 172 | const goProcess = spawn('go', ['run', './cmd/ttn-lw-stack', 'start'], { |
no test coverage detected