gorig-cli 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Gorig CLI
|
|
2
|
+
|
|
3
|
+
Gorig CLI 是一个基于 Node.js 的脚手架工具,用于在基于gorig框架的 Go 项目中快速创建模块化结构。它提供了一组命令,用于自动生成项目中的目录和文件,简化开发流程。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
使用 npm 进行全局安装:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install -g gorig-cli
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## 使用示例
|
|
14
|
+
|
|
15
|
+
使用 `create` 命令创建一个新的模块,例如:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
gorig-cli create coupon
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
以上命令将在项目中生成一个名为 `coupon` 的模块,包含必要的目录和文件。
|