File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 2
2
用于推送 generic 类型制品到 coding 制品库
3
3
4
4
## 安装
5
- ```
5
+
6
+ ``` shell
6
7
npm install coding-generic -g
7
8
```
8
9
9
10
## 使用
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>
12
14
```
Original file line number Diff line number Diff line change 1
1
const 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>' )
3
3
. options ( {
4
4
username : {
5
5
alias : 'u' ,
6
- describe : '用户名' ,
6
+ describe : '用户名(必填)和密码(可选),用冒号分隔 ' ,
7
7
demandOption : true
8
8
} ,
9
9
path : {
@@ -26,7 +26,7 @@ const argv = require('yargs')
26
26
. alias ( 'version' , 'v' )
27
27
. help ( 'h' )
28
28
. 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"' )
30
30
. argv ;
31
31
32
32
module . exports = argv ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " coding-generic" ,
3
- "version" : " 1.2.2 " ,
3
+ "version" : " 1.2.3 " ,
4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"bin" : {
You can’t perform that action at this time.
0 commit comments