gorig-cli 1.0.5 → 1.0.7
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 +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,6 +10,12 @@ Gorig CLI 是一个基于 Node.js 的脚手架工具,用于快速创建基于
|
|
|
10
10
|
npm install -g gorig-cli
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
+
或者使用 npx 直接运行:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npx gorig-cli@latest <command>
|
|
17
|
+
```
|
|
18
|
+
|
|
13
19
|
## 快速开始
|
|
14
20
|
|
|
15
21
|
### 初始化新项目
|
|
@@ -20,6 +26,12 @@ npm install -g gorig-cli
|
|
|
20
26
|
gorig-cli init my-new-project
|
|
21
27
|
```
|
|
22
28
|
|
|
29
|
+
或者使用 npx:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npx gorig-cli@latest init my-new-project
|
|
33
|
+
```
|
|
34
|
+
|
|
23
35
|
这将在当前目录下创建一个新项目,包含 `_cmd/main.go`、`domain/init.go`、`cron/cron.go` 等基本文件和目录。
|
|
24
36
|
|
|
25
37
|
### 创建新模块
|
|
@@ -30,6 +42,12 @@ gorig-cli init my-new-project
|
|
|
30
42
|
gorig-cli create user
|
|
31
43
|
```
|
|
32
44
|
|
|
45
|
+
或者使用 npx:
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
npx gorig-cli@latest create user
|
|
49
|
+
```
|
|
50
|
+
|
|
33
51
|
这将在项目中创建一个名为 `user` 的模块,包含 `api/`、`internal/`、`model/` 等文件夹和必要的代码。
|
|
34
52
|
|
|
35
53
|
### 运行项目
|