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

Method constructor

out/cli.cjs:395–397  ·  view source on GitHub ↗
({ render: u3, input: F5 = import_node_process.stdin, output: e3 = import_node_process.stdout, ...s2 }, C5 = true)

Source from the content-addressed store, hash-verified

393 lD2 = /* @__PURE__ */ new Set(["up", "down", "left", "right", "space", "enter"]);
394 x3 = class {
395 constructor({ render: u3, input: F5 = import_node_process.stdin, output: e3 = import_node_process.stdout, ...s2 }, C5 = true) {
396 a(this, "input"), a(this, "output"), a(this, "rl"), a(this, "opts"), a(this, "_track", false), a(this, "_render"), a(this, "_cursor", 0), a(this, "state", "initial"), a(this, "value"), a(this, "error", ""), a(this, "subscribers", /* @__PURE__ */ new Map()), a(this, "_prevFrame", ""), this.opts = s2, this.onKeypress = this.onKeypress.bind(this), this.close = this.close.bind(this), this.render = this.render.bind(this), this._render = u3.bind(this), this._track = C5, this.input = F5, this.output = e3;
397 }
398 prompt() {
399 const u3 = new import_node_tty.WriteStream(0);
400 return u3._write = (F5, e3, s2) => {

Callers

nothing calls this directly

Calls 15

$5Function · 0.85
V5Function · 0.85
UtFunction · 0.85
E3Function · 0.85
deFunction · 0.85
D4Function · 0.85
YeFunction · 0.85
F4Function · 0.85
NeFunction · 0.85
HeFunction · 0.85
xeFunction · 0.85
VeFunction · 0.85

Tested by

no test coverage detected