cli-zzc
v0.0.2
Published
In order to simplify the daily work
Downloads
3
Readme
cli-zzc
In order to simplify the daily work
Usage
$ npm install -g cli-zzc
$ cli-zzc COMMAND
running command...
$ cli-zzc (-v|--version|version)
cli-zzc/0.0.2 darwin-x64 node-v10.20.1
$ cli-zzc --help [COMMAND]
USAGE
$ cli-zzc COMMAND
...
Commands
cli-zzc help [COMMAND]
cli-zzc statistic:rows FILEPATH [IGNORE]
cli-zzc tpl:list [GROUP]
cli-zzc tpl:load NAME
cli-zzc tpl:sourceDir
cli-zzc tpl:update NAME
cli-zzc transform:base64 FILEPATH
cli-zzc transform:watermark WATERMARK IMGPATH
cli-zzc help [COMMAND]
display help for cli-zzc
USAGE
$ cli-zzc help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
cli-zzc statistic:rows FILEPATH [IGNORE]
统计文件行数
USAGE
$ cli-zzc statistic:rows FILEPATH [IGNORE]
ARGUMENTS
FILEPATH
IGNORE [default: .lock,.DS_Store] 过滤文件后缀
OPTIONS
-h, --help show CLI help
-p, --path=path [default: /fileInfo/] 保存路径用//包裹(默认在同目录下的/fileInfo/中)
-t, --trim 是否去除空行
-w, --write 是否将文件信息写入文件
See code: src/commands/statistic/rows.ts
cli-zzc tpl:list [GROUP]
展示模板列表
USAGE
$ cli-zzc tpl:list [GROUP]
ARGUMENTS
GROUP (common|fusion|antd|uni-app) [default: common] 选择模版框架
OPTIONS
-h, --help 展示模板列表
See code: src/commands/tpl/list.ts
cli-zzc tpl:load NAME
使用模板
USAGE
$ cli-zzc tpl:load NAME
OPTIONS
-f, --force
-g, --group=common|fusion|antd|uni-app [default: common]
-h, --help show CLI help
See code: src/commands/tpl/load.ts
cli-zzc tpl:sourceDir
获取模板本地缓存目录
USAGE
$ cli-zzc tpl:sourceDir
See code: src/commands/tpl/sourceDir.ts
cli-zzc tpl:update NAME
更新模板
USAGE
$ cli-zzc tpl:update NAME
OPTIONS
-h, --help show CLI help
See code: src/commands/tpl/update.ts
cli-zzc transform:base64 FILEPATH
任意文件转换base64编码
USAGE
$ cli-zzc transform:base64 FILEPATH
OPTIONS
-h, --help show CLI help
-w, --write 将base64数据写入文件(同输入文件路径)
See code: src/commands/transform/base64.ts
cli-zzc transform:watermark WATERMARK IMGPATH
图片批量添加水印
USAGE
$ cli-zzc transform:watermark WATERMARK IMGPATH
OPTIONS
-f, --force
-h, --help show CLI help
-w, --path=path [default: /saveImg/] 保存路径用//包裹(默认在同目录下的/saveImg/中)
See code: src/commands/transform/watermark.ts