@100tal-yach/cli 中文文档教程
@100tal-yach/cli
a cli tools
install
$ npm install @100tal-yach/cli --save // yarn add @100tal-yach/cli
usage
terminal 工具
yach-del
删除本地文件
$ yach-del ./somefile
yach-serve
在当前目录起一个静态服务
$ cd someDir
$ yach-serve
-> http://localhost:5000
yach-open
本地浏览器打开链接
$ yach-open https://baidu.com
yach-uuid
生成一个 uuid
$ yach-uuid
-> 75cb6b99-c257-41e6-b9f2-ae7ad1d31ce9
yach-start
在一个命令行同时运行多个命令
"scripts": {
// ...
"watch-js": "...",
"watch-less": "...",
"start": "yach-start \"npm:watch-js\" \"npm:watch-less\""
// ...
}
->
yach-shell
跨平台的 unix 脚本执行
$ yach-shell echo hello world
-> hello world