要求,执行
adbclear com.example.sang.helloworld
等于
adb shell pm clear com.example.sang.helloworld
核心
- package.json里配置全局命令
- argv读取
- 发布到npmjs.org上(注意名字adbclear是不能一样的)
想写的同学,把代码放到github上,此贴回复链接,然后我来review一下
要求,执行
adbclear com.example.sang.helloworld
等于
adb shell pm clear com.example.sang.helloworld
核心
想写的同学,把代码放到github上,此贴回复链接,然后我来review一下
alias adbclear='adb shell pm clear'
开个张 :)
@leapon 哈哈,太偷懒了
可以参照 https://github.com/i5ting/node-cli-tmpl 然后改,确实很简单的
lz 你真闲 any points in this?
@russj 是咸的 :)
@russj 无任何难点,因为难点都在https://github.com/i5ting/node-cli-tmpl 里了,只是填空
@leapon 好吧,下次来点高级的