UNPKG

projex

Version:
24 lines (23 loc) 894 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const _api_1 = require("../../api/index"); const _modules_1 = require("../../modules/index"); const core_1 = require("@oclif/core"); const _shared_1 = require("../../shared/index"); class Browse extends core_1.Command { static description = `Run a script from the package.json or the manifest.json file. If the script is not found, we throw a warning.`; static examples = [`${_api_1.Colors.PINK(`${_shared_1.CLI_NAME} vtex run-script`)} 'prerelease'`]; static flags = { ..._shared_1.globalFlags, }; static args = { script: core_1.Args.string({ description: `Specify the script to run.`, }), }; async run() { const { args: { script }, } = await this.parse(Browse); (0, _modules_1.vtexRunScript)(script); } } exports.default = Browse;