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 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: "force", Short: "force MakeDi all struct", Run: func(cmd *cobra.Command, args []string) { difactroy.FindBeanDiFactroy().MakeDiAllForce(true) }, }
View Source
var ListStruCmd = &cobra.Command{ Use: "list ", Short: "MakeDi list all struct!", Run: func(cmd *cobra.Command, args []string) { fmt.Println("list all struct") difactroy.FindBeanDiFactroy().ListDiAll() }, }
View Source
var OptCmd = &cobra.Command{ Use: "opt [flag]", Short: "Make opt of one struct flag", Run: func(cmd *cobra.Command, args []string) { difactroy.FindBeanDiFactroy().MakeOption() }, }
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) }, }
View Source
var SuiteCmdAll = &cobra.Command{ Use: "all ", Short: "Make all suites!", Run: func(cmd *cobra.Command, args []string) { difactroy.FindBeanDiFactroy().MakeSuite() }, }
View Source
var SuiteCmdForce = &cobra.Command{ Use: "force ", Short: "Make force one suite!", Run: func(cmd *cobra.Command, args []string) { flag := cmd.Flags().Arg(0) difactroy.FindBeanDiFactroy().MakeSuite(flag) }, }
View Source
var SuiteOneCmd = &cobra.Command{ Use: "one [flag]", Short: "Make suite of one struct flag", Run: func(cmd *cobra.Command, args []string) { if len(cmd.Flags().Args()) > 0 { flag := cmd.Flags().Arg(0) fmt.Println(flag) difactroy.FindBeanDiFactroy().MakeSuite(flag) } else { logrus.Error(" godi suite XXXX!") } }, }
gocfg i ini
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.