Skip to main content

eslint-plugin-copilot Documentation / _internal/copilot-customization-names / getPromptName

Function: getPromptName()

function getPromptName(
filePath: string,
frontmatter: Readonly<{
body: string;
content: string;
fields: ReadonlyMap<string, FrontmatterField>;
}> | null
): string;

Defined in: _internal/copilot-customization-names.ts:65

Get the effective prompt slash-command name.

Parameters​

| Parameter | Type | | ------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | | filePath | string | | frontmatter | | Readonly<{ body: string; content: string; fields: ReadonlyMap<string, FrontmatterField>; }> | null |

Returns​

string