Documentation ¶
Overview ¶
Package commands 包含 sunshine 命令的所有子命令。
Index ¶
- func GenGraphCommand() *cobra.Command
- func GenMicroCommand() *cobra.Command
- func GenWebCommand() *cobra.Command
- func GetSunshineDir() string
- func InitCommand() *cobra.Command
- func MergeCommand() *cobra.Command
- func NewRootCMD() *cobra.Command
- func OpenUICommand() *cobra.Command
- func PatchCommand() *cobra.Command
- func PluginsCommand() *cobra.Command
- func TemplateCommand() *cobra.Command
- func UpgradeCommand() *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenGraphCommand ¶ added in v1.1.23
GenGraphCommand generate graph command
func GenMicroCommand ¶
GenMicroCommand generate micro service code
func GenWebCommand ¶
GenWebCommand 生成 Web 服务器代码的命令 该命令用于生成 Web 项目的模型、缓存、数据访问对象、处理器和 HTTP 代码。
func TemplateCommand ¶ added in v1.1.23
TemplateCommand generate code based on custom templates
func UpgradeCommand ¶
UpgradeCommand 创建并返回升级 sunshine 二进制文件的命令实例
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/sunshine_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/sunshine_merge_backup_code |
Package patch is command set for patching service code.
|
Package patch is command set for patching service code. |
Package template provides commands to generate custom code.
|
Package template provides commands to generate custom code. |
Click to show internal directories.
Click to hide internal directories.