@cardstack/cli
Version:
Command line tools for Cardstack.
13 lines • 503 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const child_process_1 = require("child_process");
function default_1(command, args, options, ui) {
let child = child_process_1.spawnSync(command, args, options);
if (child.status !== 0) {
ui.write(child.stdout.toString("utf8"), "INFO");
ui.write(child.stderr.toString("utf8"), "ERROR");
throw new Error(`${command} failed`);
}
}
exports.default = default_1;
//# sourceMappingURL=exec.js.map