(filePath: string, baseDir: string)
| 549 | } |
| 550 | |
| 551 | function getRegularCommandName(filePath: string, baseDir: string): string { |
| 552 | const fileName = basename(filePath) |
| 553 | const fileDirectory = dirname(filePath) |
| 554 | const commandBaseName = fileName.replace(/\.md$/, '') |
| 555 | |
| 556 | const namespace = buildNamespace(fileDirectory, baseDir) |
| 557 | return namespace ? `${namespace}:${commandBaseName}` : commandBaseName |
| 558 | } |
| 559 | |
| 560 | function getCommandName(file: MarkdownFile): string { |
| 561 | const isSkill = isSkillFile(file.filePath) |
no test coverage detected