UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

48 lines 1.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.appInstallCliLeaf = void 0; const alwayscli_1 = require("@alwaysai/alwayscli"); const cli_inputs_1 = require("../../cli-inputs"); const app_1 = require("../../components/app"); exports.appInstallCliLeaf = (0, alwayscli_1.CliLeaf)({ name: 'install', description: 'Install this application and its dependencies locally or on a remote device', namedInputs: { yes: cli_inputs_1.yesCliInput, clean: cli_inputs_1.cleanCliInput, pull: (0, alwayscli_1.CliFlagInput)({ description: 'Pull the base docker image prior to building' }), source: (0, alwayscli_1.CliFlagInput)({ description: 'Specifically install the application source' }), models: (0, alwayscli_1.CliFlagInput)({ description: 'Specifically install the application models' }), docker: (0, alwayscli_1.CliFlagInput)({ description: 'Specifically install the application docker image' }), venv: (0, alwayscli_1.CliFlagInput)({ description: 'Specifically install the application Python virtualenv' }), excludes: (0, alwayscli_1.CliStringArrayInput)({ description: 'One or more files to exclude from package. These will be appended to paths in .aai-ignore.', required: false, placeholder: '<path/to/file1> [<path/to/file2> ...]' }) }, async action(_, opts) { const { yes, clean, pull, source, models, docker, venv, excludes } = opts; await (0, app_1.appInstallComponent)({ yes, clean, pull, source, models, docker, venv, excludes }); } }); //# sourceMappingURL=install.js.map