Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCmd = &cobra.Command{ Use: "all", Short: "MakeDi all struct", Run: func(cmd *cobra.Command, args []string) { difactroy.FindBeanDiFactroy().MakeDiAll() }, }
View Source
var AllCurCmd = &cobra.Command{ Use: "code", Short: "MakeDi code struct", Run: func(cmd *cobra.Command, args []string) { difactroy.FindBeanDiFactroy().MakeDiCur(fileutils.FindRootDir() + "/code") }, }
code 生成代码
View Source
var FileCmd = &cobra.Command{ Use: "file [flag]", Short: "MakeDi one file flag", Run: func(cmd *cobra.Command, args []string) { flag := cmd.Flags().Arg(0) difactroy.FindBeanDiFactroy().MakeDiFile(flag) }, }
View Source
var ForceCmd = &cobra.Command{ Use: "forceall", Short: "force MakeDi all struct", Run: func(cmd *cobra.Command, args []string) { difactroy.FindBeanDiFactroy().MakeDiAllForce(true) }, }
View Source
var GodiCmds = []*cobra.Command{ suitecmd.SuiteCmd, AllCmd, AllCurCmd, ForceCmd, FileCmd, StruCmd, }
View Source
var StruCmd = &cobra.Command{ Use: "stru [flag]", Short: "MakeDi one struct flag", Run: func(cmd *cobra.Command, args []string) { flag := cmd.Flags().Arg(0) difactroy.FindBeanDiFactroy().MakeDiStru(flag) }, }
Functions ¶
func InjectCmdGodi ¶
func InjectCmdGodi(s *CmdGodi)
func LoadCmdGodi ¶
func LoadCmdGodi() baseiface.ISingleton
Types ¶
Click to show internal directories.
Click to hide internal directories.