pg

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RepositorySuffix  = "GrpcRepository"
	RpcClientFileName = "client"
	Repository        = "Repository"
	Service           = "Service"
	RpcClient         = "RpcClient"
	Controller        = "Controller"
	All               = "all"

	RepositoryTpl = "repository.tpl"
	ServiceTpl    = "service.tpl"
	ClientTpl     = "client.tpl"
	ControllerTpl = "controller.tpl"
)

Variables

View Source
var (
	Cmd = &cobra.Command{
		Use:              "pg",
		Short:            "php generate init file",
		Long:             `generate init file for php project;examples:repository、service、controller、rpcClient`,
		TraverseChildren: true,
		RunE: func(cmd *cobra.Command, args []string) error {
			run()
			return nil
		},
	}
)
View Source
var (
	HomeDir string
)

pg php generate Example:service repository rpcClient controller

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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