MCPcopy Index your code
hub / github.com/darkreader/darkreader / execute

Function execute

tasks/utils.js:20–28  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

18 * @returns {Promise<string>}
19 */
20export async function execute(command) {
21 return new Promise((resolve, reject) => exec(command, (error, stdout) => {
22 if (error) {
23 reject(`Failed to execute command ${command}`);
24 } else {
25 resolve(stdout);
26 }
27 }));
28}
29
30/**
31 * @param {string} text

Callers 3

ensureGitCleanFunction · 0.90
checkoutVersionFunction · 0.90
checkoutHeadFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected