internal

package
v1.11.26 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

type GlobalApp struct {
	basics.Basic
	// contains filtered or unexported fields
}

GlobalApp is a general global object

func App

func App() *GlobalApp

App is a global singleton GlobalApp instance

func (*GlobalApp) AppName

func (s *GlobalApp) AppName() string

AppName returns app name

func (*GlobalApp) AppTag

func (s *GlobalApp) AppTag() string

AppTag returns app tag name (app name or service id)

func (*GlobalApp) AppVersion

func (s *GlobalApp) AppVersion() string

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

func (s *GlobalApp) CmdrVersion() string

CmdrVersion returns app tag name (app name or service id)

func (*GlobalApp) Init

func (s *GlobalApp) Init(cmd *cmdr.Command, args []string) (err error)

Init do initial stuffs

func (*GlobalApp) RootCommand

func (s *GlobalApp) RootCommand() *cmdr.RootCommand

RootCommand returns cmdr.RootCommand

Jump to

Keyboard shortcuts

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