Skip to content

fix: #6 notice password #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
用于推送 generic 类型制品到 coding 制品库

## 安装
```

```shell
npm install coding-generic -g
```

## 使用
```
coding-generic --username=<USERNAME> --path=<FILE.EXT> --registry=<REGISTRY>

```shell
coding-generic --username=<USERNAME>[:password] --path=<FILE.EXT> --registry=<REGISTRY>
```
6 changes: 3 additions & 3 deletions lib/argv.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const argv = require('yargs')
.usage('用法: coding-generic --username=<USERNAME> --path=<FILE.EXT> --registry=<REGISTRY>')
.usage('用法: coding-generic --username=<USERNAME>[:PASSWORD] --path=<FILE.EXT> --registry=<REGISTRY>')
.options({
username: {
alias: 'u',
describe: '用户名',
describe: '用户名(必填)和密码(可选),用冒号分隔',
demandOption: true
},
path: {
Expand All @@ -26,7 +26,7 @@ const argv = require('yargs')
.alias('version', 'v')
.help('h')
.alias('h', 'help')
.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"')
.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"')
.argv;

module.exports = argv;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coding-generic",
"version": "1.2.2",
"version": "1.2.3",
"description": "",
"main": "index.js",
"bin": {
Expand Down