UNPKG

@expressots/cli

Version:

Expressots CLI - modern, fast, lightweight nodejs web framework (@cli)

25 lines (24 loc) 819 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.scriptsCommand = void 0; const form_1 = require("./form"); const scriptsCommand = () => { return { command: "scripts [scripts..]", describe: "Run scripts list or specific scripts", builder: (yargs) => { return yargs.positional("scripts", { describe: "The names of the scripts to run", type: "string", array: true, }); }, handler: async (argv) => { const scripts = Array.isArray(argv.scripts) ? argv.scripts.filter((script) => typeof script === "string") : []; await (0, form_1.scriptsForm)(scripts); }, }; }; exports.scriptsCommand = scriptsCommand;