UNPKG

dce-dev-wizard

Version:

Wizard for managing development apps at Harvard DCE.

18 lines 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var child_process_1 = require("child_process"); /** * Execute a command * @author Gabe Abrams * @param command the command to execute * @param printToStdOut if true, print to standard out instead of returning */ var exec = function (command, printToStdOut) { if (printToStdOut) { (0, child_process_1.execSync)(command, { stdio: 'inherit' }); return ''; } return (0, child_process_1.execSync)(command).toString(); }; exports.default = exec; //# sourceMappingURL=exec.js.map