MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / delete

Method delete

packages/core/src/plugin/plugins.ts:165–172  ·  view source on GitHub ↗
(pluginName: string)

Source from the content-addressed store, hash-verified

163 }
164
165 async delete(pluginName: string): Promise<boolean> {
166 const plugin = this.plugins.find(({ name }) => name === pluginName)
167 if (!plugin) return false
168 await plugin.destroy()
169 const idx = this.plugins.indexOf(plugin)
170 this.plugins.splice(idx, 1)
171 return this.pluginsMap.delete(pluginName)
172 }
173
174 async init() {
175 const pluginNames: string[] = []

Callers

nothing calls this directly

Calls 4

findMethod · 0.80
indexOfMethod · 0.80
destroyMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected