cmdfactroy

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 struct {
	basedto.BaseEntitySingle

	RootCmd *cobra.Command
	// contains filtered or unexported fields
}

func FindBeanMenuFactroy

func FindBeanMenuFactroy() *MenuFactroy

func NewMenuFactroy

func NewMenuFactroy() *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

goconfig.FindBeanGominiFilecfg().InitPkg(BASE_PKG)

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 func(entity *MenuFactroy)

Jump to

Keyboard shortcuts

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