continue-custom/core/commands/slash/promptBlockSlashCommand.ts
2025-06-23 19:04:45 -07:00

13 lines
340 B
TypeScript

import { Prompt } from "@continuedev/config-yaml";
import { SlashCommandWithSource } from "../..";
export function convertPromptBlockToSlashCommand(
prompt: Prompt,
): SlashCommandWithSource {
return {
name: prompt.name,
description: prompt.description ?? "",
prompt: prompt.prompt,
source: "yaml-prompt-block",
};
}