Skip to content

Commit 7fda76b

Browse files
alqmcalqmc
authored andcommitted
refactor: use cac
1 parent 05c20ad commit 7fda76b

File tree

20 files changed

+1172
-265
lines changed

20 files changed

+1172
-265
lines changed

README-zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="300px" src="./package/assets/icon.png">
2+
<img width="200px" src="./package/assets/icon.png">
33
</p>
44

55
<p align="center">

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<img width="100px" src="./package/assets/icon.png">
2+
<img width="200px" src="./package/assets/icon.png">
33
</p>
44

55
<p align="center">

dist/README.md

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<p align="center">
2+
<img width="200px" src="./package/assets/icon.png">
3+
</p>
4+
5+
<p align="center">
6+
<a href="https://www.npmjs.org/package/gacm">
7+
<img src="https://img.shields.io/npm/v/gacm.svg">
8+
</a>
9+
<a href="https://npmcharts.com/compare/gacm?minimal=true">
10+
<img src="https://img.shields.io/npm/dm/gacm.svg?color=357C3C">
11+
</a>
12+
<a href="https://npmcharts.com/compare/gacm?minimal=true">
13+
<img src="https://img.shields.io/npm/l/gacm.svg?color=blue">
14+
</a>
15+
<a href="https://github.com/alqmc/gacm" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/alqmc/gacm?style=social">
16+
17+
</a>
18+
<br>
19+
</p>
20+
21+
<p align="center"> Git Account Management Tools & NPM Registry Manager</p>
22+
23+
English | [简体中文](./README-zh_CN.md)
24+
25+
### Features
26+
27+
- ✨ Seamless switching of GIT account and npm registry
28+
29+
- 🚀Minimalist operation,just like nvm
30+
31+
- 😊 gacm ls Automatically add local git account or npm registry
32+
33+
- 👋 gnrm Flexible configuration, pollution-free,distinguish package manager
34+
35+
36+
37+
### Getting Started
38+
39+
```
40+
pnpm add gacm -g
41+
42+
yarn add gacm -g
43+
44+
npm install gacm -g
45+
46+
```
47+
48+
### Usage
49+
50+
#### switch git account
51+
52+
53+
```shell
54+
## just like nvm
55+
56+
## View the user list, and local users will be automatically added
57+
gacm ls
58+
59+
60+
## Switch git account
61+
gacm use xxx --local
62+
63+
gacm use xxx --global
64+
65+
66+
## Add user,--alias Optional define user alias
67+
gacm add --name xxx --email xxx [--alias xxx]
68+
69+
## Define user alias
70+
gacm alias xxxx xxxx
71+
72+
## delete user
73+
gacm delete user
74+
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+
101+
```
102+
### License
103+
104+
MIT License © 2022 [阿乐去买菜(alqmc)](https://github.com/alqmc)
105+
106+
107+

dist/assets/git.svg

Lines changed: 2 additions & 0 deletions
Loading

dist/assets/icon.png

2.89 KB
Loading

0 commit comments

Comments
 (0)