(filename: string)
| 353 | * Extract command name from filename (strip .md extension only) |
| 354 | */ |
| 355 | export function getCommandNameFromFile(filename: string): string { |
| 356 | if (filename.toLowerCase().endsWith(".md")) { |
| 357 | return filename.slice(0, -3) |
| 358 | } |
| 359 | return filename |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Check if a file is a markdown file |
no outgoing calls
no test coverage detected