映射型插件机制 - fe-robot
功能描述
映射型插件, 主要用于解决各类cli维护的问题, 使用fe-robot安装一个现有的cli,可以实现命令行的关联映射调用
install
fe-robot install pluginName
pluginName
可以是任意一个npm包, 安装时将检测是否有bin入口
uninstall
fe-robot uninstall pluginName
pluginName
是当前已经安装的插件包
范例
// 安装
fe-robot install http-server
// 调用
fe-robot http-server -h
fe-robot http-server . -p 8080
// 卸载
fe-robot uninstall http-server
标题:映射型插件机制 - fe-robot
作者:hugh0524
地址:https://blog.uproject.cn/articles/2020/04/02/1585817743396.html