UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

18 lines 739 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const spawner_base_1 = require("./spawner-base"); const gnu_spawner_1 = require("./gnu-spawner"); const resolve_posix_path_1 = require("../util/resolve-posix-path"); function ChildSpawner(context) { const resolvePath = resolve_posix_path_1.ResolvePosixPath(context.path); return gnu_spawner_1.GnuSpawner(Object.assign({ resolvePath }, spawner_base_1.SpawnerBase(translate))); function translate(cmd) { const translated = Object.assign({}, cmd); if (cmd.cwd) { translated.cwd = resolvePath(cmd.cwd); } return translated; } } exports.ChildSpawner = ChildSpawner; //# sourceMappingURL=child-spawner.js.map