( out: SkillRoot[], dirs: readonly string[], base: string, source: SkillSource, isDir: (p: string) => Promise<boolean>, realpath: (p: string) => Promise<string>, )
| 276 | } |
| 277 | |
| 278 | async function pushFirstExisting( |
| 279 | out: SkillRoot[], |
| 280 | dirs: readonly string[], |
| 281 | base: string, |
| 282 | source: SkillSource, |
| 283 | isDir: (p: string) => Promise<boolean>, |
| 284 | realpath: (p: string) => Promise<string>, |
| 285 | ): Promise<void> { |
| 286 | for (const dir of dirs) { |
| 287 | if (await pushExistingRoot(out, path.join(base, dir), source, isDir, realpath)) return; |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | async function pushBrandGroup( |
| 292 | out: SkillRoot[], |
no test coverage detected