MCPcopy
hub / github.com/di-sukharev/opencommit / unsubscribe

Method unsubscribe

out/cli.cjs:423–425  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

421 for (const C5 of s2) C5();
422 }
423 unsubscribe() {
424 this.subscribers.clear();
425 }
426 onKeypress(u3, F5) {
427 if (this.state === "error" && (this.state = "active"), F5?.name && !this._track && z3.has(F5.name) && this.emit("cursor", z3.get(F5.name)), F5?.name && lD2.has(F5.name) && this.emit("cursor", F5.name), u3 && (u3.toLowerCase() === "y" || u3.toLowerCase() === "n") && this.emit("confirm", u3.toLowerCase() === "y"), u3 === " " && this.opts.placeholder && (this.value || (this.rl.write(this.opts.placeholder), this.emit("value", this.opts.placeholder))), u3 && this.emit("key", u3.toLowerCase()), F5?.name === "return") {
428 if (this.opts.validate) {

Callers 6

closeMethod · 0.45
onFinishedFunction · 0.45
doneFunction · 0.45
unsubscribeFunction · 0.45
cli.cjsFile · 0.45
constructorMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected