cli

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// VarStringOutput describes the output.
	VarStringOutput string
	// VarStringHome describes the goctl home.
	VarStringHome string
	// VarStringRemote describes the remote git repository.
	VarStringRemote string
	// VarStringBranch describes the git branch.
	VarStringBranch string
	// VarStringSliceGoOut describes the go output.
	VarStringSliceGoOut []string
	// VarStringSliceGoGRPCOut describes the grpc output.
	VarStringSliceGoGRPCOut []string
	// VarStringSlicePlugin describes the protoc plugin.
	VarStringSlicePlugin []string
	// VarStringSliceProtoPath describes the proto path.
	VarStringSliceProtoPath []string
	// VarStringSliceGoOpt describes the go options.
	VarStringSliceGoOpt []string
	// VarStringSliceGoGRPCOpt describes the grpc options.
	VarStringSliceGoGRPCOpt []string
	// VarStringStyle describes the style of output files.
	VarStringStyle string
	// VarStringZRPCOut describes the zRPC output.
	VarStringZRPCOut string
	// VarBoolIdea describes whether idea or not
	VarBoolIdea bool
	// VarBoolVerbose describes whether verbose.
	VarBoolVerbose bool
	// VarBoolMultiple describes whether support generating multiple rpc services or not.
	VarBoolMultiple bool
	// VarStringSchema describes the ent schema path
	VarStringSchema string
	// VarStringServiceName describes the service name
	VarStringServiceName string
	// VarStringProjectName describes the service name
	VarStringProjectName string
	// VarStringModelName describes which model for generating
	VarStringModelName string
	// VarIntSearchKeyNum describes the number of search keys
	VarIntSearchKeyNum int
	// VarBoolEnt describes whether the project use Ent
	VarBoolEnt bool
	// VarStringModuleName describes the module name
	VarStringModuleName string
	// VarIntServicePort describes the service port exposed
	VarIntServicePort int
	// VarStringGroupName describes whether to use group
	VarStringGroupName string
	// VarStringProtoPath describes the output proto file path for ent code generation
	VarStringProtoPath string
	// VarStringProtoFieldStyle describes the proto fields naming style
	VarStringProtoFieldStyle string
	// VarBoolDesc describes whether to create desc folder for splitting proto files
	VarBoolDesc bool
	// VarBoolI18n describes whether to use i18n
	VarBoolI18n bool
	// VarBoolOverwrite describes whether to overwrite the files, it will overwrite all generated files.
	VarBoolOverwrite bool
	// VarStringImportPrefix describes the prefix in import
	VarStringImportPrefix string
	// VarBoolClient describes whether to generate rpc client
	VarBoolClient bool
)

Functions

func EntCRUDLogic

func EntCRUDLogic(_ *cobra.Command, _ []string) error

EntCRUDLogic is used to generate CRUD code with Ent

func RPCNew

func RPCNew(_ *cobra.Command, args []string) error

RPCNew is to generate rpc greet service, this greet service can speed up your understanding of the zrpc service structure

func RPCTemplate

func RPCTemplate(latest bool) error

RPCTemplate is the entry for generate rpc template

func ZRPC

func ZRPC(_ *cobra.Command, args []string) error

ZRPC generates grpc code directly by protoc and generates zrpc code by goctl.

Types

This section is empty.

Jump to

Keyboard shortcuts

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