UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

19 lines 677 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runForegroundSync = void 0; const child_process_1 = require("child_process"); const logger_1 = require("../../logger"); function runForegroundSync(cmd) { var _a; const optString = cmd.args ? cmd.args.join(' ') : ''; logger_1.logger.debug(`${cmd.exe} ${optString}`); const out = (0, child_process_1.spawnSync)(cmd.exe, (_a = cmd.args) !== null && _a !== void 0 ? _a : [], { cwd: cmd.cwd, stdio: 'inherit' }); if (out.error) { throw out.error; } } exports.runForegroundSync = runForegroundSync; //# sourceMappingURL=run-foreground-sync.js.map