UNPKG

@wep2/cli

Version:

Command line for Wepublish Editor 2

20 lines 662 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const commander_1 = require("commander"); const install_1 = require("./commands/install"); const update_1 = require("./commands/update"); commander_1.program .description('Wepublish Editor 2 cli') .option('-i, --install <project-name>', 'Install Wepublish Editor 2') .option('-u, --update', 'Install Wepublish Editor 2') .parse(process.argv); const commands = commander_1.program.opts(); // INSTALL if (commands.install) { (0, install_1.install)(commands.install); } // UPDATE if (commands.update) { (0, update_1.update)(); } //# sourceMappingURL=program.js.map