( out: SkillRoot[], dirs: readonly string[], projectRoot: string, userHomeDir: string, source: SkillSource, isDir: (p: string) => Promise<boolean>, realpath: (p: string) => Promise<string>, )
| 307 | } |
| 308 | |
| 309 | async function pushConfiguredDirs( |
| 310 | out: SkillRoot[], |
| 311 | dirs: readonly string[], |
| 312 | projectRoot: string, |
| 313 | userHomeDir: string, |
| 314 | source: SkillSource, |
| 315 | isDir: (p: string) => Promise<boolean>, |
| 316 | realpath: (p: string) => Promise<string>, |
| 317 | ): Promise<void> { |
| 318 | for (const dir of dirs) { |
| 319 | await pushExistingRoot( |
| 320 | out, |
| 321 | resolveConfiguredDir(dir, projectRoot, userHomeDir), |
| 322 | source, |
| 323 | isDir, |
| 324 | realpath, |
| 325 | ); |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | async function pushExistingRoot( |
| 330 | out: SkillRoot[], |
no test coverage detected