UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

17 lines 669 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const alwayscli_1 = require("@alwaysai/alwayscli"); const target_config_file_1 = require("../../util/target-config-file"); exports.appExecCliLeaf = alwayscli_1.createLeaf({ name: 'exec', description: 'Run a command in the application target directory', args: alwayscli_1.createStringArrayInput({ placeholder: '<command> [<args>]', required: true, }), action([exe, ...args]) { const spawner = target_config_file_1.targetConfigFile.readSpawner(); spawner.runForegroundSync({ exe, args, cwd: '.' }); }, }); //# sourceMappingURL=exec.js.map