(data: Buffer)
| 724 | let detected = false; |
| 725 | |
| 726 | function handleOutput(data: Buffer): void { |
| 727 | const url = data.toString().match(/Local:\s+(http:\/\/localhost:\d+)/)?.[1]; |
| 728 | if (!url || detected) return; |
| 729 | |
| 730 | detected = true; |
| 731 | spinner.stop(c.success("Studio running")); |
| 732 | printStudioSummary(projectName, url, { footer: "Press Ctrl+C to stop" }); |
| 733 | openStudioBrowser(url, projectName, options); |
| 734 | child.stdout.removeListener("data", handleOutput); |
| 735 | child.stderr.removeListener("data", handleOutput); |
| 736 | } |
| 737 | |
| 738 | child.stdout.on("data", handleOutput); |
| 739 | child.stderr.on("data", handleOutput); |
nothing calls this directly
no test coverage detected