Skip to content

Commit 2e719b4

Browse files
authored
fix: #6 notice password (#7)
1 parent f967fc9 commit 2e719b4

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
用于推送 generic 类型制品到 coding 制品库
33

44
## 安装
5-
```
5+
6+
```shell
67
npm 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
```

lib/argv.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
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>')
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

3232
module.exports = argv;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coding-generic",
3-
"version": "1.2.2",
3+
"version": "1.2.3",
44
"description": "",
55
"main": "index.js",
66
"bin": {

0 commit comments

Comments
 (0)