@liueng/ec
v1.0.2
Published
Some quick operation commands collected during programming development
Readme
命令行工具 ec
Install
# global
npm i -g @liueng/ec
# or local
npm i -D @liueng/ecUsage
# global
ec <command> [name] --help
# or local use
./node_modules/.bin/ec <command> [name] --helpcommand
stash
开发中可能遇到过用 git stash 进行项目修复并开发,日积月累产生过多的 stashes,而目前 git stash drop <stash> 支持单个删除
# 帮助命令
ec stash --help
ec stash [name] -n \>1drop
参数指定
| 参数 | type | 描述 | 支持 | | ---- | ------------- | -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | | -n | string number | 指定需要删除的 stash(支持单个,多个) | -n 1 删除 1 的 stash -n \>1 删除大于(>=等于)1 的 stash -n \<1 删除小于(<=等于)1 的 stash-n 1..2 区间范围(删除包含 1 ~ 2 的 stash) |
