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.
Click to show internal directories.
Click to hide internal directories.