MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / write

Method write

src/plugins/terminal/www/Executor.js:100–105  ·  view source on GitHub ↗

* Sends input to a running process's stdin. * * @param {string} uuid - The process ID returned by Executor#start. * @param {string} input - Input string to send (e.g., shell commands). * @returns {Promise } Resolves once the input is written. * * @example * execut

(uuid, input)

Source from the content-addressed store, hash-verified

98 * executor.write(uuid, 'ls /sdcard');
99 */
100 write(uuid, input) {
101 //console.log("write: " + input + " to " + uuid);
102 return new Promise((resolve, reject) => {
103 exec(resolve, reject, this.ExecutorType, "write", [uuid, input]);
104 });
105 }
106
107 /**
108 * Moves the executor service to the background (stops foreground notification).

Callers

nothing calls this directly

Calls 1

execFunction · 0.50

Tested by

no test coverage detected