File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ It can execute high-concurrency requests efficiently and push real-time statisti
22
22
### 📦 Installation
23
23
24
24
``` bash
25
- go install github.com/go-dev-frame/sponge/cmd/perftest @latest
25
+ go install github.com/go-dev-frame/sponge/cmd/sponge @latest
26
26
```
27
27
28
- After installation, run ` perftest -h ` to see usage.
28
+ After installation, run ` sponge perftest -h` to see usage.
29
29
30
30
<br >
31
31
Original file line number Diff line number Diff line change 22
22
### 📦 安装
23
23
24
24
``` bash
25
- go install github.com/go-dev-frame/sponge/cmd/perftest @latest
25
+ go install github.com/go-dev-frame/sponge/cmd/sponge @latest
26
26
```
27
27
28
- 安装完成后,执行 ` perftest -h ` 查看帮助。
28
+ 安装完成后,执行 ` sponge perftest -h` 查看帮助。
29
29
30
30
<br >
31
31
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ var pluginNames = []string{
24
24
"protoc-gen-go-gin" ,
25
25
"protoc-gen-go-rpc-tmpl" ,
26
26
"protoc-gen-json-field" ,
27
- "perftest" ,
28
27
"protoc-gen-openapiv2" ,
29
28
"protoc-gen-doc" ,
30
29
"swag" ,
@@ -42,7 +41,6 @@ var installPluginCommands = map[string]string{
42
41
"protoc-gen-go-gin" : "github.com/go-dev-frame/sponge/cmd/protoc-gen-go-gin@latest" ,
43
42
"protoc-gen-go-rpc-tmpl" : "github.com/go-dev-frame/sponge/cmd/protoc-gen-go-rpc-tmpl@latest" ,
44
43
"protoc-gen-json-field" : "github.com/go-dev-frame/sponge/cmd/protoc-gen-json-field@latest" ,
45
- "perftest" : "github.com/go-dev-frame/sponge/cmd/perftest@latest" ,
46
44
"protoc-gen-openapiv2" : "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest" ,
47
45
"protoc-gen-doc" : "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest" ,
48
46
"swag" :
"github.com/swaggo/swag/cmd/[email protected] " ,
@@ -181,7 +179,7 @@ func installPlugins(lackNames []string) {
181
179
182
180
func adaptInternalCommand (name string , pkgAddr string ) string {
183
181
if name == "protoc-gen-go-gin" || name == "protoc-gen-go-rpc-tmpl" ||
184
- name == "protoc-gen-json-field" || name == "perftest" {
182
+ name == "protoc-gen-json-field" {
185
183
if version != "v0.0.0" {
186
184
return strings .ReplaceAll (pkgAddr , "@latest" , "@" + version )
187
185
}
You can’t perform that action at this time.
0 commit comments