Documentation ¶
Index ¶
- func NewAppOption() cmdr.ExecOption
- type GlobalApp
- func (s *GlobalApp) AppName() string
- func (s *GlobalApp) AppTag() string
- func (s *GlobalApp) AppVersion() string
- func (s *GlobalApp) Close()
- func (s *GlobalApp) CmdrVersion() string
- func (s *GlobalApp) Init(cmd *cmdr.Command, args []string) (err error)
- func (s *GlobalApp) RootCommand() *cmdr.RootCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAppOption ¶
func NewAppOption() cmdr.ExecOption
NewAppOption returns a cmdr.ExecOption so that you can attach it into your application.
Types ¶
type GlobalApp ¶
GlobalApp is a general global object
func (*GlobalApp) AppVersion ¶
AppVersion returns app version
func (*GlobalApp) Close ¶
func (s *GlobalApp) Close()
Close cleanups internal resources and free any basic infrastructure if necessary
func (*GlobalApp) CmdrVersion ¶
CmdrVersion returns app tag name (app name or service id)
func (*GlobalApp) RootCommand ¶
func (s *GlobalApp) RootCommand() *cmdr.RootCommand
RootCommand returns cmdr.RootCommand
Click to show internal directories.
Click to hide internal directories.