MCPcopy Create free account
hub / github.com/gnmyt/Nexterm / writeNextCommand

Method writeNextCommand

server/lib/ScriptLayer.js:65–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 writeNextCommand() {
66 if (this.commandIndex < this.commandQueue.length) {
67 const cmd = this.commandQueue[this.commandIndex++];
68 this.stream.write(cmd + "\n");
69
70 if (this.commandIndex < this.commandQueue.length) {
71 setTimeout(() => this.writeNextCommand(), 50);
72 }
73 }
74 }
75
76 onData(data) { this.processOutput(data.toString()); }
77

Callers 1

startMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected