An open API service indexing awesome lists of open source software.

https://github.com/ddmoyu/gus

git user switch command-line app
https://github.com/ddmoyu/gus

cli command-line commandline-tool github user

Last synced: 24 days ago
JSON representation

git user switch command-line app

Awesome Lists containing this project

README

          

# gus

![GitHub top language](https://img.shields.io/github/languages/top/ddmoyu/gus?style=for-the-badge) ![npm](https://img.shields.io/npm/v/@ddmoyu/gus?style=for-the-badge)

git user switch, support local and global.(切换 git 用户,支持本地和全局)

![](./screenshot/00.png)

## Usage \ 使用
```bash
npm i -g @ddmoyu/gus
gus COMMAND
```

## Commands \ 命令

* `gus ls`
* `gus add`
* `gus rm`
* `gus use`

## `gus ls`
```
USAGE
$ gus ls

DESCRIPTION
list all users.

EXAMPLES
$ gus ls
╔═════════════════════════════════════════════╗
║ Git users list ║
╟────┬────────┬──────────────────────┬────────╢
║ ID │ Name │ Email │ Status ║
╟────┼────────┼──────────────────────┼────────╢
║ 0 │ test1 │ test1@gmail.com │ Local ║
╟────┼────────┼──────────────────────┼────────╢
║ 1 │ ddmoyu │ daydaymoyu@gmail.com │ Global ║
╟────┼────────┼──────────────────────┼────────╢
║ 2 │ test2 │ test2@gmail.com │ ║
╚════╧════════╧══════════════════════╧════════╝
```

## `gus add`
```
USAGE
$ gus add

DESCRIPTION
Add user.

EXAMPLES
$ gus add moyu daydaymoyu@gmail.com

// Add moyu successfull!
```

## `gus rm`
```bash
USAGE
$ gus rm

DESCRIPTION
remove user.

EXAMPLES
$ gus rm 0
// or
$ gus rm moyu

// remove moyu successfull!
```

## `gus use`
```txt
USAGE
$ gus use

DESCRIPTION
use this user.

FLAGS
-l set the user as local user.(Default) \ 设置该用户为当前仓库用户。
-g set the user as global user. \ 设置该用户为全局仓库用户。

EXAMPLES
$ gus use 0 -l
// or
$ gus use moyu -g

// use moyu successfull!
```

![Alt](https://repobeats.axiom.co/api/embed/ad5b43957b9b91ed267eea780e8f13cf580dbc1f.svg "Repobeats analytics image")