MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getCommandNameFromFile

Function getCommandNameFromFile

src/services/command/commands.ts:355–360  ·  view source on GitHub ↗
(filename: string)

Source from the content-addressed store, hash-verified

353 * Extract command name from filename (strip .md extension only)
354 */
355export 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

Callers 2

commands.spec.tsFile · 0.90
scanCommandDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected