1.0.11 • Published 7 years ago
@evio/cli v1.0.11
@node/cli
插件式命令行工具
Usage
cpm i @node/cli -gInstall Plugins
cli install <plugins...> [-r <registry>]Uninstall Plugins
cli uninstall <plugins...>Update Plugins
cli update [plugins...] [-r <registry>]View Plugins
cli view [plugins...]Make a plugin template
cli make [plugin]Link plugin
cli linkunlink plugin
cli unlinkBuild Plugin
每个插件都返回一个函数即可
module.exports = (program, client) => {
program.command(...).option(...).action(client.require('./lib/xxx'));
}
module.exports.__IS_CLI_PLUGIN__ = true;