(workspaceId: string, projectPath: string)
| 2163 | } |
| 2164 | |
| 2165 | private startWorkspaceInit(workspaceId: string, projectPath: string): InitLogger { |
| 2166 | assert(workspaceId.length > 0, "startWorkspaceInit: workspaceId must be non-empty"); |
| 2167 | assert(projectPath.length > 0, "startWorkspaceInit: projectPath must be non-empty"); |
| 2168 | |
| 2169 | this.initStateManager.startInit(workspaceId, projectPath); |
| 2170 | return { |
| 2171 | logStep: (message: string) => this.initStateManager.appendOutput(workspaceId, message, false), |
| 2172 | logStdout: (line: string) => this.initStateManager.appendOutput(workspaceId, line, false), |
| 2173 | logStderr: (line: string) => this.initStateManager.appendOutput(workspaceId, line, true), |
| 2174 | logComplete: (exitCode: number) => void this.initStateManager.endInit(workspaceId, exitCode), |
| 2175 | enterHookPhase: () => this.initStateManager.enterHookPhase(workspaceId), |
| 2176 | }; |
| 2177 | } |
| 2178 | |
| 2179 | async createMany( |
| 2180 | argsList: TaskCreateArgs[], |
no test coverage detected