(filePath: string, baseDir: string)
| 543 | } |
| 544 | |
| 545 | function getRegularCommandName(filePath: string, baseDir: string): string { |
| 546 | const fileName = basename(filePath) |
| 547 | const fileDirectory = dirname(filePath) |
| 548 | const commandBaseName = fileName.replace(/\.md$/, '') |
| 549 | |
| 550 | const namespace = buildNamespace(fileDirectory, baseDir) |
| 551 | return namespace ? `${namespace}:${commandBaseName}` : commandBaseName |
| 552 | } |
| 553 | |
| 554 | function getCommandName(file: MarkdownFile): string { |
| 555 | const isSkill = isSkillFile(file.filePath) |
no test coverage detected