Skip to content

Commit 1f71b1e

Browse files
alqmcalqmc
authored andcommitted
docs: readme update
1 parent 9f28df6 commit 1f71b1e

File tree

8 files changed

+159
-66
lines changed

8 files changed

+159
-66
lines changed

README-zh_CN.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@
1818
<br>
1919
</p>
2020

21-
<p align="center"> 极简的git账号管理工具(Git Account Management Tools )</p>
21+
<p align="center"> 极简的git账号与npm registry管理工具( Git Account Management Tools & NPM Registry Manager )</p>
2222

2323
简体中文 | [English](./README.md)
2424

2525
### Features
2626

27-
-git账户无缝切换
27+
-git账户与npm registry管理工具( 无缝切换
2828

2929
- 🚀 极简的操作方式,just like nvm
3030

31-
- 😊 gacm ls 自动添加本地git账户
31+
- 😊 gacm [gnrm] ls 自动添加本地git账户或者本地npm registry管理工具
32+
33+
- 👋 gnrm 灵活配置,无污染,区分包管理器
3234

3335

3436
### Getting Started
@@ -45,6 +47,8 @@ npm install gacm -g
4547
### Usage
4648

4749

50+
#### 切换git账户
51+
4852
```shell
4953
## just like nvm
5054

@@ -68,6 +72,33 @@ gacm alias xxxx xxxx
6872
gacm delete user
6973

7074
```
75+
76+
#### 切换NPM Registry
77+
78+
```shell
79+
## just like nvm
80+
81+
## 查看NPM Registry 列表,会自动添加本地NPM Registry
82+
gnrm ls [-p xxxx]
83+
84+
85+
## 切换 npm registry default npm
86+
gacm use xxx [-p yarn]
87+
88+
gacm use xxx [-p cnpm]
89+
90+
91+
## 添加registry --alias 可选 定义 registry 别名
92+
gacm add --name xxx --registry xxx [--alias xxx]
93+
94+
## 定义registry别名
95+
gacm alias xxxx xxxx
96+
97+
## 删除 registry
98+
gacm delete xxx
99+
100+
```
101+
71102
### License
72103

73104
MIT License © 2022 [阿乐去买菜(alqmc)](https://github.com/alqmc)

README.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@
1818
<br>
1919
</p>
2020

21-
<p align="center"> Git Account Management Tools</p>
21+
<p align="center"> Git Account Management Tools & NPM Registry Manager</p>
2222

2323
English | [简体中文](./README-zh_CN.md)
2424

2525
### Features
2626

27-
- ✨ Seamless switching of GIT account
27+
- ✨ Seamless switching of GIT account and npm registry
2828

2929
- 🚀Minimalist operation,just like nvm
3030

31-
- 😊 gacm ls Automatically add local git account
31+
- 😊 gacm ls Automatically add local git account or npm registry
32+
33+
- 👋 gnrm Flexible configuration, pollution-free,distinguish package manager
34+
3235

3336

3437
### Getting Started
@@ -44,6 +47,8 @@ npm install gacm -g
4447

4548
### Usage
4649

50+
#### switch git account
51+
4752

4853
```shell
4954
## just like nvm
@@ -67,6 +72,32 @@ gacm alias xxxx xxxx
6772
## delete user
6873
gacm delete user
6974

75+
```
76+
77+
#### switch npm registry
78+
79+
```shell
80+
## just like nvm
81+
82+
## View the registry list, and local registry will be automatically added
83+
gnrm ls [-p xxxx]
84+
85+
86+
## Switch npm registry default npm
87+
gacm use xxx [-p yarn]
88+
89+
gacm use xxx [-p cnpm]
90+
91+
92+
## Add registry--alias Optional define registry alias
93+
gacm add --name xxx --registry xxx [--alias xxx]
94+
95+
## Define registry alias
96+
gacm alias xxxx xxxx
97+
98+
## delete registry
99+
gacm delete xxx
100+
70101
```
71102
### License
72103

dist/README.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,20 @@
1818
<br>
1919
</p>
2020

21-
<p align="center"> Git Account Management Tools</p>
21+
<p align="center"> Git Account Management Tools & NPM Registry Manager</p>
2222

2323
English | [简体中文](./README-zh_CN.md)
2424

2525
### Features
2626

27-
- ✨ Seamless switching of GIT account
27+
- ✨ Seamless switching of GIT account and npm registry
2828

2929
- 🚀Minimalist operation,just like nvm
3030

31-
- 😊 gacm ls Automatically add local git account
31+
- 😊 gacm ls Automatically add local git account or npm registry
32+
33+
- 👋 gnrm Flexible configuration, pollution-free,distinguish package manager
34+
3235

3336

3437
### Getting Started
@@ -44,6 +47,8 @@ npm install gacm -g
4447

4548
### Usage
4649

50+
#### switch git account
51+
4752

4853
```shell
4954
## just like nvm
@@ -67,6 +72,32 @@ gacm alias xxxx xxxx
6772
## delete user
6873
gacm delete user
6974

75+
```
76+
77+
#### switch npm registry
78+
79+
```shell
80+
## just like nvm
81+
82+
## View the registry list, and local registry will be automatically added
83+
gnrm ls [-p xxxx]
84+
85+
86+
## Switch npm registry default npm
87+
gacm use xxx [-p yarn]
88+
89+
gacm use xxx [-p cnpm]
90+
91+
92+
## Add registry--alias Optional define registry alias
93+
gacm add --name xxx --registry xxx [--alias xxx]
94+
95+
## Define registry alias
96+
gacm alias xxxx xxxx
97+
98+
## delete registry
99+
gacm delete xxx
100+
70101
```
71102
### License
72103

dist/gacm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
1616
var prompts__default = /*#__PURE__*/_interopDefaultLegacy(prompts);
1717

1818
var name$1 = "gacm";
19-
var version$1 = "1.1.5";
19+
var version$1 = "1.2.0";
2020
var description$1 = "git account manage";
2121
var keywords = [
2222
"git",
@@ -82,7 +82,7 @@ const log = {
8282
};
8383

8484
var name = "gacm";
85-
var version = "1.1.5";
85+
var version = "1.2.0";
8686
var description = "gacm";
8787
var scripts = {
8888
build: "gulp --require sucrase/register/ts --gulpfile build/gulpfile.ts",

dist/gnrm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);
1616
var prompts__default = /*#__PURE__*/_interopDefaultLegacy(prompts);
1717

1818
var name$1 = "gacm";
19-
var version$1 = "1.1.5";
19+
var version$1 = "1.2.0";
2020
var description$1 = "git account manage";
2121
var keywords = [
2222
"git",
@@ -82,7 +82,7 @@ const log = {
8282
};
8383

8484
var name = "gacm";
85-
var version = "1.1.5";
85+
var version = "1.2.0";
8686
var description = "gacm";
8787
var scripts = {
8888
build: "gulp --require sucrase/register/ts --gulpfile build/gulpfile.ts",

dist/package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
{
2-
"name": "gacm",
3-
"version": "1.1.5",
4-
"private": false,
5-
"description": "git account manage",
6-
"keywords": [
7-
"git",
8-
"account",
9-
"manage"
10-
],
11-
"license": "MIT",
12-
"author": "alqmc",
13-
"bin": {
14-
"gacm": "gacm.js",
15-
"gnrm": "gnrm.js"
16-
},
17-
"publishConfig": {
18-
"access": "public"
19-
},
20-
"dependencies": {
21-
"commander": "^9.3.0",
22-
"execa": "5.1.1",
23-
"kolorist": "^1.5.1",
24-
"prompts": "^2.4.2"
25-
}
26-
}
1+
{
2+
"name": "gacm",
3+
"version": "1.2.0",
4+
"private": false,
5+
"description": "git account manage",
6+
"keywords": [
7+
"git",
8+
"account",
9+
"manage"
10+
],
11+
"license": "MIT",
12+
"author": "alqmc",
13+
"bin": {
14+
"gacm": "gacm.js",
15+
"gnrm": "gnrm.js"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
20+
"dependencies": {
21+
"commander": "^9.3.0",
22+
"execa": "5.1.1",
23+
"kolorist": "^1.5.1",
24+
"prompts": "^2.4.2"
25+
}
26+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gacm",
3-
"version": "1.1.5",
3+
"version": "1.2.0",
44
"description": "gacm",
55
"scripts": {
66
"build": "gulp --require sucrase/register/ts --gulpfile build/gulpfile.ts",

package/package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
{
2-
"name": "gacm",
3-
"version": "1.1.5",
4-
"private": false,
5-
"description": "git account manage",
6-
"keywords": [
7-
"git",
8-
"account",
9-
"manage"
10-
],
11-
"license": "MIT",
12-
"author": "alqmc",
13-
"bin": {
14-
"gacm": "gacm.js",
15-
"gnrm": "gnrm.js"
16-
},
17-
"publishConfig": {
18-
"access": "public"
19-
},
20-
"dependencies": {
21-
"commander": "^9.3.0",
22-
"execa": "5.1.1",
23-
"kolorist": "^1.5.1",
24-
"prompts": "^2.4.2"
25-
}
26-
}
1+
{
2+
"name": "gacm",
3+
"version": "1.2.0",
4+
"private": false,
5+
"description": "git account manage",
6+
"keywords": [
7+
"git",
8+
"account",
9+
"manage"
10+
],
11+
"license": "MIT",
12+
"author": "alqmc",
13+
"bin": {
14+
"gacm": "gacm.js",
15+
"gnrm": "gnrm.js"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
20+
"dependencies": {
21+
"commander": "^9.3.0",
22+
"execa": "5.1.1",
23+
"kolorist": "^1.5.1",
24+
"prompts": "^2.4.2"
25+
}
26+
}

0 commit comments

Comments
 (0)