File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 22用于推送 generic 类型制品到 coding 制品库
33
44## 安装
5- ```
5+
6+ ``` shell
67npm install coding-generic -g
78```
89
910## 使用
10- ```
11- coding-generic --username=<USERNAME> --path=<FILE.EXT> --registry=<REGISTRY>
11+
12+ ``` shell
13+ coding-generic --username=< USERNAME> [:password] --path=< FILE.EXT> --registry=< REGISTRY>
1214```
Original file line number Diff line number Diff line change 11const argv = require ( 'yargs' )
2- . usage ( '用法: coding-generic --username=<USERNAME> --path=<FILE.EXT> --registry=<REGISTRY>' )
2+ . usage ( '用法: coding-generic --username=<USERNAME>[:PASSWORD] --path=<FILE.EXT> --registry=<REGISTRY>' )
33 . options ( {
44 username : {
55 alias : 'u' ,
6- describe : '用户名' ,
6+ describe : '用户名(必填)和密码(可选),用冒号分隔 ' ,
77 demandOption : true
88 } ,
99 path : {
@@ -26,7 +26,7 @@ const argv = require('yargs')
2626 . alias ( 'version' , 'v' )
2727 . help ( 'h' )
2828 . alias ( 'h' , 'help' )
29- . example ( 'coding-generic --username=coding@coding.com --path=./test.txt --registry="https://codingcorp-generic.pkg.coding.net/project-name/generic-repo/chunks/test.txt?version=latest"' )
29+ . example ( 'coding-generic --username=coding@coding.com:123456 --path=./test.txt --registry="https://codingcorp-generic.pkg.coding.net/project-name/generic-repo/chunks/test.txt?version=latest"' )
3030 . argv ;
3131
3232module . exports = argv ;
Original file line number Diff line number Diff line change 11{
22 "name" : " coding-generic" ,
3- "version" : " 1.2.2 " ,
3+ "version" : " 1.2.3 " ,
44 "description" : " " ,
55 "main" : " index.js" ,
66 "bin" : {
You can’t perform that action at this time.
0 commit comments