UNPKG

@ne_fe/page-cli

Version:

generate page by json

14 lines (12 loc) 462 B
#!/usr/bin/env node 'use strict'; const program = require('commander'); const packageJson = require('../package.json'); const handle = require('../util/handle'); program .version(packageJson.version) .option('-c, --config <configPath>', 'required, the path of the JSON configuration') .option('-p, --path <filePath>', 'The path(include name) of the file you want to generate') .parse(process.argv); // 处理逻辑 handle(program.config, program.path);