feat: initial CLI structure
- init: create plugin boilerplate - install: install from local path with deps - list: show installed plugins - validate: check manyplug.json syntax
This commit is contained in:
61
README.md
Normal file
61
README.md
Normal file
@@ -0,0 +1,61 @@
|
||||
# ManyPlug
|
||||
|
||||
CLI plugin manager for ManyBot.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install -g manyplug
|
||||
# or
|
||||
npm link # for development
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Create new plugin
|
||||
manyplug init my-plugin --category games
|
||||
|
||||
# Install plugin from local path
|
||||
manyplug install --local ../my-plugin
|
||||
|
||||
# List installed plugins
|
||||
manyplug list
|
||||
|
||||
# Validate manyplug.json
|
||||
manyplug validate
|
||||
manyplug validate ./my-plugin
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
| Command | Description |
|
||||
|---------|-------------|
|
||||
| `init <name>` | Create new plugin boilerplate |
|
||||
| `install [name]` | Install from registry or `--local <path>` |
|
||||
| `list` | List installed plugins |
|
||||
| `validate [path]` | Validate manyplug.json |
|
||||
|
||||
## Plugin Structure
|
||||
|
||||
```
|
||||
my-plugin/
|
||||
├── manyplug.json # Plugin metadata
|
||||
├── index.js # Entry point
|
||||
└── locale/ # Translations
|
||||
└── pt.json
|
||||
```
|
||||
|
||||
### manyplug.json
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "my-plugin",
|
||||
"version": "1.0.0",
|
||||
"category": "games",
|
||||
"service": false,
|
||||
"dependencies": {}
|
||||
}
|
||||
```
|
||||
|
||||
**Categories:** games, media, utility, service, admin, fun
|
||||
Reference in New Issue
Block a user