internal

package
v1.10.11 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) AppModuleName

func (s *GlobalApp) AppModuleName() string

AppModuleName returns app module name

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) AppTitle

func (s *GlobalApp) AppTitle() string

AppTitle returns app title line

func (*GlobalApp) Close

func (s *GlobalApp) Close()

Close cleanups internal resources and free any basic infrastructure if necessary

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