Documentation ¶
Overview ¶
Package commands are subcommands of the sponge command.
Index ¶
- func GenMicroCommand() *cobra.Command
- func GenWebCommand() *cobra.Command
- func GetSpongeDir() string
- func InitCommand() *cobra.Command
- func MergeCommand() *cobra.Command
- func NewRootCMD() *cobra.Command
- func OpenUICommand() *cobra.Command
- func PatchCommand() *cobra.Command
- func ToolsCommand() *cobra.Command
- func UpgradeCommand() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenMicroCommand ¶ added in v1.5.1
GenMicroCommand generate micro service code
func GenWebCommand ¶ added in v1.5.1
GenWebCommand generate web server code
func GetSpongeDir ¶ added in v1.3.8
func GetSpongeDir() string
GetSpongeDir get sponge home directory
func MergeCommand ¶ added in v1.4.5
MergeCommand merge the generated code
func OpenUICommand ¶ added in v1.5.1
OpenUICommand open the sponge UI interface
func PatchCommand ¶ added in v1.5.1
PatchCommand patch server code
func ToolsCommand ¶ added in v1.2.0
ToolsCommand tools management
func UpgradeCommand ¶ added in v1.3.12
UpgradeCommand upgrade sponge binaries
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package generate is to generate code, including model, cache, dao, handler, http, service, grpc, grpc-gw, grpc-cli code.
|
Package generate is to generate code, including model, cache, dao, handler, http, service, grpc, grpc-gw, grpc-cli code. |
Package merge is merge the generated code into the template file, you don't worry about it affecting the logic code you have already written, in case of accidents, you can find the pre-merge code in the directory /tmp/sponge_merge_backup_code
|
Package merge is merge the generated code into the template file, you don't worry about it affecting the logic code you have already written, in case of accidents, you can find the pre-merge code in the directory /tmp/sponge_merge_backup_code |
Package patch is command set for patching server code.
|
Package patch is command set for patching server code. |
Click to show internal directories.
Click to hide internal directories.