const { spawn } = require('child_process'); export class Command { static exec(name, args, path){ return new Promise((resolve)=>{ const child = spawn(name, args, { shell : true, stdio: 'inherit', cwd : path }); child.on("exit", (code, signal)=>{ resolve(); }); }); } }