godicmd

package
v1.0.1-rel-02 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: AFL-3.0 Imports: 8 Imported by: 0

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 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

type CmdGodi

type CmdGodi struct {
	basedto.BaseEntitySingle
	DiFactroy *difactroy.DiFactroy
}

func FindBeanCmdGodi

func FindBeanCmdGodi() *CmdGodi

FindBeanCmdGodi

func NewCmdGodi

func NewCmdGodi() *CmdGodi

func (*CmdGodi) Exec

func (c *CmdGodi) Exec() string

Jump to

Keyboard shortcuts

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