61 lines
620 B
TypeScript
61 lines
620 B
TypeScript
export const templates: Record<string, string> = {
|
|
command: `## Comando
|
|
|
|
## Qué hace
|
|
|
|
## Cuándo usarlo
|
|
|
|
## Ejemplo
|
|
\`\`\`bash
|
|
|
|
\`\`\`
|
|
`,
|
|
snippet: `## Snippet
|
|
|
|
## Lenguaje
|
|
|
|
## Qué resuelve
|
|
|
|
## Notas
|
|
`,
|
|
decision: `## Contexto
|
|
|
|
## Decisión
|
|
|
|
## Alternativas consideradas
|
|
|
|
## Consecuencias
|
|
`,
|
|
recipe: `## Ingredientes
|
|
|
|
## Pasos
|
|
|
|
## Tiempo
|
|
|
|
## Notas
|
|
`,
|
|
procedure: `## Objetivo
|
|
|
|
## Pasos
|
|
|
|
## Requisitos
|
|
|
|
## Problemas comunes
|
|
`,
|
|
inventory: `## Item
|
|
|
|
## Cantidad
|
|
|
|
## Ubicación
|
|
|
|
## Notas
|
|
`,
|
|
note: `## Notas
|
|
|
|
`,
|
|
}
|
|
|
|
export function getTemplate(type: string): string {
|
|
return templates[type] || templates.note
|
|
}
|