Skip to content

Commit 1903730

Browse files
committed
fix: plugin name
1 parent ca32dbb commit 1903730

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

cmd/sponge/commands/perftest/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ It can execute high-concurrency requests efficiently and push real-time statisti
2222
### 📦 Installation
2323

2424
```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
2626
```
2727

28-
After installation, run `perftest -h` to see usage.
28+
After installation, run `sponge perftest -h` to see usage.
2929

3030
<br>
3131

cmd/sponge/commands/perftest/readme-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
### 📦 安装
2323

2424
```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
2626
```
2727

28-
安装完成后,执行 `perftest -h` 查看帮助。
28+
安装完成后,执行 `sponge perftest -h` 查看帮助。
2929

3030
<br>
3131

cmd/sponge/commands/plugins.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var pluginNames = []string{
2424
"protoc-gen-go-gin",
2525
"protoc-gen-go-rpc-tmpl",
2626
"protoc-gen-json-field",
27-
"perftest",
2827
"protoc-gen-openapiv2",
2928
"protoc-gen-doc",
3029
"swag",
@@ -42,7 +41,6 @@ var installPluginCommands = map[string]string{
4241
"protoc-gen-go-gin": "github.com/go-dev-frame/sponge/cmd/protoc-gen-go-gin@latest",
4342
"protoc-gen-go-rpc-tmpl": "github.com/go-dev-frame/sponge/cmd/protoc-gen-go-rpc-tmpl@latest",
4443
"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",
4644
"protoc-gen-openapiv2": "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest",
4745
"protoc-gen-doc": "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest",
4846
"swag": "github.com/swaggo/swag/cmd/[email protected]",
@@ -181,7 +179,7 @@ func installPlugins(lackNames []string) {
181179

182180
func adaptInternalCommand(name string, pkgAddr string) string {
183181
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" {
185183
if version != "v0.0.0" {
186184
return strings.ReplaceAll(pkgAddr, "@latest", "@"+version)
187185
}

0 commit comments

Comments
 (0)