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

Method execute

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

* Executes a shell command once and waits for it to finish. * Unlike Executor#start, this does not stream output. * * @param {string} command - The shell command to execute. * @param {boolean} [alpine=false] - Whether to run the command in the Alpine sandbox (`true`) or Android e

(command, alpine = false)

Source from the content-addressed store, hash-verified

243 * .catch(console.error);
244 */
245 execute(command, alpine = false) {
246 return new Promise((resolve, reject) => {
247 exec(resolve, reject, this.ExecutorType, "exec", [command, String(alpine)]);
248 });
249 }
250
251 /**
252 * Loads a native library from the specified path.

Callers 11

runQuickCommandFunction · 0.45
runForegroundCommandFunction · 0.45
runExecutorTestsFunction · 0.45
terminalRestoreFunction · 0.45
startAxsFunction · 0.45
stopAxsFunction · 0.45
isAxsRunningFunction · 0.45
installFunction · 0.45
backupFunction · 0.45
restoreFunction · 0.45
uninstallFunction · 0.45

Calls 2

StringInterface · 0.85
execFunction · 0.50

Tested by

no test coverage detected