MCPcopy Create free account
hub / github.com/11cafe/comfyui-workspace-manager / executeCommand

Function executeCommand

scripts/setupGitHooks.js:35–46  ·  view source on GitHub ↗
(command, workingDirectory = '../')

Source from the content-addressed store, hash-verified

33}
34
35function executeCommand(command, workingDirectory = '../') {
36 exec(command, { cwd: path.resolve(__dirname, workingDirectory) }, (error, stdout, stderr) => {
37 if (error) {
38 console.error(`An error occurred while executing command "${command}":`, error);
39 return;
40 }
41 if (stderr) {
42 console.error(`Command error "${stderr}"`);
43 return;
44 }
45 });
46}
47
48function main() {
49 files.forEach((file) => {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected