cmdfactroy

package
v0.0.0-...-c47cd45 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const BASE_PKG = "gitee.com/general/webcli120/godimenu/di/codeweb"

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) SetBasePkg(basePkg string)
func (self *MenuFactroy) SetCmdName(cmdName string)
func (self *MenuFactroy) SetVersion(version string)
func (self *MenuFactroy) Version() string

Jump to

Keyboard shortcuts

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