gomenu

package
v1.4.130 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BASE_PKG = "gitee.com/ichub/goconfig/common/base/basedto"

Variables

This section is empty.

Functions

func LoadGomenuFactroy

func LoadGomenuFactroy() baseiface.ISingleton

Types

type GomenuFactroy

type GomenuFactroy struct {
	basedto.BaseEntitySingle

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

func FindBeanGomenuFactroy

func FindBeanGomenuFactroy() *GomenuFactroy

func NewGomenuFactroy

func NewGomenuFactroy() *GomenuFactroy

func (*GomenuFactroy) AddCommand

func (self *GomenuFactroy) AddCommand(cmd *cobra.Command) *GomenuFactroy

func (*GomenuFactroy) AddCommands

func (self *GomenuFactroy) AddCommands(cmds ...*cobra.Command) *GomenuFactroy

func (*GomenuFactroy) AddSub added in v1.4.129

func (self *GomenuFactroy) AddSub(parentTitle, short string, cmds ...*cobra.Command) *GomenuFactroy

func (*GomenuFactroy) AddSubCmds

func (self *GomenuFactroy) AddSubCmds(parentTitle string, cmds ...*cobra.Command) *GomenuFactroy

func (*GomenuFactroy) BasePkg

func (self *GomenuFactroy) BasePkg() string

func (*GomenuFactroy) CmdName

func (self *GomenuFactroy) CmdName() string

func (*GomenuFactroy) Execute

func (self *GomenuFactroy) Execute() error

func (*GomenuFactroy) Init

func (self *GomenuFactroy) Init() *GomenuFactroy

goconfig.FindBeanGominiFilecfg().InitPkg(BASE_PKG)

func (*GomenuFactroy) SetBasePkg

func (self *GomenuFactroy) SetBasePkg(basePkg string)

func (*GomenuFactroy) SetCmdName

func (self *GomenuFactroy) SetCmdName(cmdName string)

func (*GomenuFactroy) SetVersion

func (self *GomenuFactroy) SetVersion(version string)

func (*GomenuFactroy) Version

func (self *GomenuFactroy) Version() string

Jump to

Keyboard shortcuts

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