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
- Host: GitHub
- URL: https://github.com/yviscool/egg-pig-cli
- Owner: yviscool
- Created: 2018-05-18T02:25:10.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-26T09:32:53.000Z (almost 7 years ago)
- Last Synced: 2025-06-13T00:40:52.303Z (about 1 year ago)
- Topics: cli, cmd, egg, egg-pig
- Language: JavaScript
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```