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

https://github.com/yviscool/egg-pig-cli

egg-pig cli
https://github.com/yviscool/egg-pig-cli

cli cmd egg egg-pig

Last synced: 12 months ago
JSON representation

egg-pig cli

Awesome Lists containing this project

README

          

# egg-pig-cli

## Installation

```bash
npm install -g egg-pig-cli
```

## Usage

```hash
pig [command] [...options]
```

### generate (alias: g)

| Option | Description | Required |
| - | :-: | -: |
| type | file type | true |
| name | file name | true |
| path | path | false |

A list of available architecture components:

* controller (alias: c|co|con)
* decorator (alias: d|de|dec)
* filter (alias: f|fi|fil|ft)
* exception (alias: e|ex|exce)
* guard (alias: gu|gua)
* interceptor (alias: i|in|int|inter)
* pipe (alias: p|pi)
* middleware (alias: m|mi|midd)

**Example usage**

```bash
pig generate controller user
pig g co user
```