ucf-scripts-test
Version:
development and build services of UCF project
20 lines (17 loc) • 510 B
JavaScript
/* ucf-scripts
* @Author: Kvkens(yueming@yonyou.com)
* @Date: 2019-01-21 13:02:27
* @Last Modified by: Kvkens
* @Last Modified time: 2019-05-25 14:28:58
* e.g: 1. ucf-scripts start
* 2. ucf-scripts build
* 3. install "ucf-scripts" : "latest"
*/
const argv = require("minimist")(process.argv.slice(2));
const commands = argv._;
try {
require(`./${commands[0]}`).plugin();
} catch (error) {
console.error(error);
console.log('bad command \neg : ucf-scripts [start][build]')
}