commands

package
v1.1.39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package commands 包含 sunshine 命令的所有子命令。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenGraphCommand added in v1.1.23

func GenGraphCommand() *cobra.Command

GenGraphCommand generate graph command

func GenMicroCommand

func GenMicroCommand() *cobra.Command

GenMicroCommand generate micro service code

func GenWebCommand

func GenWebCommand() *cobra.Command

GenWebCommand 生成 Web 服务器代码的命令 该命令用于生成 Web 项目的模型、缓存、数据访问对象、处理器和 HTTP 代码。

func GetSunshineDir

func GetSunshineDir() string

GetSunshineDir 获取 sunshine 的主目录路径

func InitCommand

func InitCommand() *cobra.Command

InitCommand 创建并返回初始化 sunshine 的命令实例

func MergeCommand

func MergeCommand() *cobra.Command

MergeCommand merge the generated code

func NewRootCMD

func NewRootCMD() *cobra.Command

NewRootCMD 创建并返回 sunshine 命令的根命令实例

func OpenUICommand

func OpenUICommand() *cobra.Command

OpenUICommand run the sunshine ui service

func PatchCommand

func PatchCommand() *cobra.Command

PatchCommand patch server code

func PluginsCommand

func PluginsCommand() *cobra.Command

PluginsCommand 创建一个管理依赖插件的 Cobra 命令

func TemplateCommand added in v1.1.23

func TemplateCommand() *cobra.Command

TemplateCommand generate code based on custom templates

func UpgradeCommand

func UpgradeCommand() *cobra.Command

UpgradeCommand 创建并返回升级 sunshine 二进制文件的命令实例

Types

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL