(targetDir: string, baseDir: string)
| 21 | } |
| 22 | |
| 23 | function buildNamespace(targetDir: string, baseDir: string): string { |
| 24 | const normalizedBaseDir = baseDir.endsWith(pathSep) |
| 25 | ? baseDir.slice(0, -1) |
| 26 | : baseDir |
| 27 | |
| 28 | if (targetDir === normalizedBaseDir) { |
| 29 | return '' |
| 30 | } |
| 31 | |
| 32 | const relativePath = targetDir.slice(normalizedBaseDir.length + 1) |
| 33 | return relativePath ? relativePath.split(pathSep).join(':') : '' |
| 34 | } |
| 35 | |
| 36 | function getWorkflowCommandName(file: MarkdownFile): string { |
| 37 | if (isWorkflowEntrypoint(file.filePath)) { |
no outgoing calls
no test coverage detected