Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdChooseFw = &cobra.Command{
Use: "fw",
Short: "gen a new controller & service & repository & domain",
Example: "brix gen all user",
Run: runCreate,
}
View Source
var CmdCreate = &cobra.Command{ Use: "gen [type] [controller-name]", Short: "gen a new controller/service/repository/model", Example: "brix gen controller user", Args: cobra.ExactArgs(2), Run: runCreate, }
View Source
var CmdCreateAll = &cobra.Command{ Use: "all", Short: "gen a new controller & service & repository & domain", Example: "brix gen all user", Args: cobra.ExactArgs(1), Run: runCreate, }
View Source
var CmdCreateController = &cobra.Command{ Use: "controller", Short: "gen a new controller", Example: "brix gen controller user", Args: cobra.ExactArgs(1), Run: runCreate, }
View Source
var CmdCreateDomain = &cobra.Command{ Use: "model", Short: "gen a new domain", Example: "brix gen model user", Args: cobra.ExactArgs(1), Run: runCreate, }
View Source
var CmdCreateRepository = &cobra.Command{ Use: "repository", Short: "gen a new repository", Example: "brix gen repository user", Args: cobra.ExactArgs(1), Run: runCreate, }
View Source
var CmdCreateService = &cobra.Command{ Use: "service", Short: "gen a new service", Example: "brix gen service user", Args: cobra.ExactArgs(1), Run: runCreate, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.