Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
Output io.Writer
Input io.Reader
// contains filtered or unexported fields
}
Application holds all command actions and gives context to them. The main use for a central command holder is testing.
func GetApplication ¶
func GetApplication() *Application
GetApplication returns the holder for commands and global flags
func (*Application) Commands ¶
func (app *Application) Commands() []cli.Command
Commands returns all registered commands ordered by name
func (*Application) GlobalFlags ¶
func (app *Application) GlobalFlags() []cli.Flag
GlobalFlags returns all global flags, which are required by the commands
Click to show internal directories.
Click to hide internal directories.