MCPcopy Create free account
hub / github.com/echoVic/blade-code / deleteTemplate

Method deleteTemplate

src/prompt/PromptTemplate.ts:440–446  ·  view source on GitHub ↗

* 删除模板

(id: string)

Source from the content-addressed store, hash-verified

438 * 删除模板
439 */
440 public deleteTemplate(id: string): boolean {
441 // 不允许删除内置模板
442 if (this.builtInTemplates[id]) {
443 throw new Error(`不能删除内置模板: ${id}`);
444 }
445 return this.templates.delete(id);
446 }
447
448 /**
449 * 渲染模板

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.80

Tested by

no test coverage detected