(rootPath: string, projectName: string)
| 338 | }; |
| 339 | |
| 340 | const start = async (rootPath: string, projectName: string): Promise<void> => { |
| 341 | try { |
| 342 | const started = await source.startIndex(rootPath, projectName); |
| 343 | if (!mounted.current) { |
| 344 | return; |
| 345 | } |
| 346 | setStartNotice(text.started(started.path.length > 0 ? started.path : rootPath)); |
| 347 | void loadJobs(); |
| 348 | } catch (error) { |
| 349 | if (mounted.current) { |
| 350 | setStartNotice(text.startError(describeError(error))); |
| 351 | } |
| 352 | } |
| 353 | }; |
| 354 | |
| 355 | const browse = async (at: string): Promise<void> => { |
| 356 | try { |
no test coverage detected