Documentation ¶
Index ¶
- Constants
- func InjectMenuFactroy(s *MenuFactroy)
- func LoadMenuFactroy() baseiface.ISingleton
- type MenuFactroy
- func (self *MenuFactroy) AddCommand(cmd *cobra.Command) *MenuFactroy
- func (self *MenuFactroy) AddCommands(cmds ...*cobra.Command) *MenuFactroy
- func (self *MenuFactroy) AddSubCmds(parentTitle string, cmds ...*cobra.Command) *MenuFactroy
- func (self *MenuFactroy) BasePkg() string
- func (self *MenuFactroy) CmdName() string
- func (self *MenuFactroy) Execute() error
- func (self *MenuFactroy) Init() *MenuFactroy
- func (self *MenuFactroy) MenuFactroyOption(opts ...MenuFactroyOption)
- func (self *MenuFactroy) SetBasePkg(basePkg string)
- func (self *MenuFactroy) SetCmdName(cmdName string)
- func (self *MenuFactroy) SetVersion(version string)
- func (self *MenuFactroy) Version() string
- type MenuFactroyOption
Constants ¶
View Source
const BASE_PKG = "gitee.com/ichub/godi/di/codefactroy"
Variables ¶
This section is empty.
Functions ¶
func InjectMenuFactroy ¶
func InjectMenuFactroy(s *MenuFactroy)
func LoadMenuFactroy ¶
func LoadMenuFactroy() baseiface.ISingleton
Types ¶
type MenuFactroy ¶
type MenuFactroy struct { basedto.BaseEntitySingle RootCmd *cobra.Command // contains filtered or unexported fields }
func FindBeanMenuFactroy ¶
func FindBeanMenuFactroy() *MenuFactroy
func NewMenuFactroy ¶
func NewMenuFactroy() *MenuFactroy
func (*MenuFactroy) AddCommand ¶
func (self *MenuFactroy) AddCommand(cmd *cobra.Command) *MenuFactroy
func (*MenuFactroy) AddCommands ¶
func (self *MenuFactroy) AddCommands(cmds ...*cobra.Command) *MenuFactroy
func (*MenuFactroy) AddSubCmds ¶
func (self *MenuFactroy) AddSubCmds(parentTitle string, cmds ...*cobra.Command) *MenuFactroy
func (*MenuFactroy) BasePkg ¶
func (self *MenuFactroy) BasePkg() string
func (*MenuFactroy) CmdName ¶
func (self *MenuFactroy) CmdName() string
func (*MenuFactroy) Execute ¶
func (self *MenuFactroy) Execute() error
func (*MenuFactroy) Init ¶
func (self *MenuFactroy) Init() *MenuFactroy
goconfig.FindBeanGominiFilecfg().InitPkg(BASE_PKG)
func (*MenuFactroy) MenuFactroyOption ¶
func (self *MenuFactroy) MenuFactroyOption(opts ...MenuFactroyOption)
func (*MenuFactroy) SetBasePkg ¶
func (self *MenuFactroy) SetBasePkg(basePkg string)
func (*MenuFactroy) SetCmdName ¶
func (self *MenuFactroy) SetCmdName(cmdName string)
func (*MenuFactroy) SetVersion ¶
func (self *MenuFactroy) SetVersion(version string)
func (*MenuFactroy) Version ¶
func (self *MenuFactroy) Version() string
type MenuFactroyOption ¶
type MenuFactroyOption func(entity *MenuFactroy)
Click to show internal directories.
Click to hide internal directories.