Skip to content

Commit d4d11e1

Browse files
committed
update docs
1 parent a12411b commit d4d11e1

File tree

5 files changed

+25
-26
lines changed

5 files changed

+25
-26
lines changed

cmd/sponge/commands/micro.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
func GenMicroCommand() *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "micro",
13-
Short: "Generate proto, model, cache, dao, service, grpc, grpc+http, grpc-gw, grpc-cli code",
14-
Long: "generate proto, model, cache, dao, service, grpc, grpc+http, grpc-gw, grpc-cli code.",
13+
Short: "Generate protobuf, model, cache, dao, service, grpc, grpc-gw, grpc+http, grpc-cli code",
14+
Long: "generate protobuf, model, cache, dao, service, grpc, grpc-gw, grpc+http, grpc-cli code.",
1515
SilenceErrors: true,
1616
SilenceUsage: true,
1717
}

cmd/sponge/commands/patch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
func PatchCommand() *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "patch",
13-
Short: "Command set for patching server code",
14-
Long: `command set for patching server code.`,
13+
Short: "Command set for patching service code",
14+
Long: `command set for patching service code.`,
1515
SilenceErrors: true,
1616
SilenceUsage: true,
1717
}

cmd/sponge/commands/patch/copy-proto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Package patch is command set for patching server code.
1+
// Package patch is command set for patching service code.
22
package patch
33

44
import (

cmd/sponge/commands/web.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
func GenWebCommand() *cobra.Command {
1111
cmd := &cobra.Command{
1212
Use: "web",
13-
Short: "Generate model, cache, dao, handler, web code",
14-
Long: "generate model, cache, dao, handler, web code.",
13+
Short: "Generate model, cache, dao, handler, http code",
14+
Long: "generate model, cache, dao, handler, http code.",
1515
SilenceErrors: true,
1616
SilenceUsage: true,
1717
}

doc.go

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
// Package sponge is a powerful tool for generating web and microservice code, a microservice framework
2-
// based on gin and grpc encapsulation, and an open source framework for rapid application development.
1+
// Package sponge is a powerful Go development framework, it's easy to develop web and microservice projects.
2+
// repo: https://github.com/zhufuyi/sponge
3+
// docs: https://go-sponge.com
34
//
45
// Usage:
5-
//
6-
// sponge [command]
6+
// sponge [command]
77
//
88
// Available Commands:
9-
//
10-
// completion Generate the autocompletion script for the specified shell
11-
// config Generate go config code from yaml file
12-
// help Help about any command
13-
// init Initialize sponge
14-
// merge Merge the generated code into the template file
15-
// micro Generate proto, model, cache, dao, service, rpc, rpc-gw, rpc-cli code
16-
// patch Command set for patching server code
17-
// run Open the sponge UI interface
18-
// tools Managing sponge dependency tools
19-
// upgrade Upgrade sponge to the latest version
20-
// web Generate model, cache, dao, handler, web code
9+
// completion Generate the autocompletion script for the specified shell
10+
// config Generate go config code from yaml file
11+
// configmap Generate k8s configmap
12+
// help Help about any command
13+
// init Initialize sponge
14+
// merge Merge the generated code into the template file
15+
// micro Generate protobuf, model, cache, dao, service, grpc, grpc+http, grpc-gw, grpc-cli code
16+
// patch Command set for patching service code
17+
// plugins Managing sponge dependency plugins
18+
// run Open the sponge UI interface
19+
// upgrade Upgrade sponge version
20+
// web Generate model, cache, dao, handler, http code
2121
//
2222
// Flags:
23-
//
24-
// -h, --help help for sponge
25-
// -v, --version version for sponge
23+
// -h, --help help for sponge
24+
// -v, --version version for sponge
2625
//
2726
// Use "sponge [command] --help" for more information about a command.
2827
package sponge

0 commit comments

Comments
 (0)