mvp
This commit is contained in:
60
src/lib/templates.ts
Normal file
60
src/lib/templates.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user