UNPKG

@mongez/gnz

Version:

Generator Z, the next generation of scaffolding tools.

15 lines (14 loc) 862 B
'use strict';var fs=require('@mongez/fs'),commander=require('commander'),generateUsingApi=require('./generate-using-api.js'),generatorsList=require('./generators-list.js');require('os'),require('eslint'),require('prettier');var welcome=require('./utils/welcome.js');async function gnzCli() { welcome.welcome(); const packageJson = fs.getJsonFile("package.json"); commander.program.version(packageJson.version); commander.program.addCommand(generateUsingApi.generateUsingNodeApi); for (const generator of generatorsList.getGeneratorsList()) { if (!generator?.cliOptions?.commands) continue; for (const command of generator.cliOptions.commands) { commander.program.addCommand(command); } } commander.program.parse(process.argv); }exports.gnzCli=gnzCli;//# sourceMappingURL=gnz-cli.js.map