(name: string, template: string)
| 348 | } |
| 349 | |
| 350 | export async function saveCommand(name: string, template: string): Promise<void> { |
| 351 | const config = await getConfig(); |
| 352 | const updated = { |
| 353 | ...config, |
| 354 | command: { |
| 355 | ...config.command, |
| 356 | [name]: { template } |
| 357 | } |
| 358 | }; |
| 359 | await saveConfig(updated); |
| 360 | } |
| 361 | |
| 362 | export async function deleteCommand(name: string): Promise<void> { |
| 363 | const config = await getConfig(); |
no test coverage detected