Skip to content

Commit

Permalink
docs: add missing setup options (#111)
Browse files Browse the repository at this point in the history
close #112
  • Loading branch information
CyanChanges authored Oct 28, 2023
1 parent 192ce5b commit cf64b1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zh-CN/guide/develop/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ Koishi 的核心是插件系统,绝大部分 Koishi 功能都可以通过插

::: tabs code
```npm
npm run setup [name] [-c]
npm run setup [name] [-c] [-m] [-G]
```
```yarn
yarn setup [name] [-c]
yarn setup [name] [-c] [-m] [-G]
```
:::

- **name:** 插件的包名,缺省时将进行提问
- **-c, --console:** 创建一个带控制台扩展的插件
- **-m, --monorepo:** 创建 monorepo 的插件
- **-G, --no-git:** 跳过 git 初始化

我们假设你创建了一个叫 `example` 的插件。那么,你将看到下面的目录结构:

Expand Down

0 comments on commit cf64b1e

Please sign in to comment.