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

Method init

packages/core/src/plugin/plugin-runtime.ts:64–69  ·  view source on GitHub ↗
(forceInit?: boolean)

Source from the content-addressed store, hash-verified

62 }
63
64 async init(forceInit?: boolean) {
65 if (this._inited && !forceInit) return
66 this.logger.log('method init called')
67 await this.config.init?.call(undefined, this.ctx)
68 this._inited = true
69 }
70
71 async destroy() {
72 if (!this._inited) return

Callers 1

registerMethod · 0.95

Calls 1

logMethod · 0.45

Tested by

no test coverage detected