Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { *Wrapper // contains filtered or unexported fields }
func NewApp ¶
func NewApp() (a *Application)
func (*Application) AddCommand ¶
func (a *Application) AddCommand(c CommandInterface)
func (*Application) Run ¶
func (a *Application) Run() (err error)
type CommandInterface ¶
type CommandInterface interface { Configure() Execute() error Name() string AddArgument(arg *Argument) Args() []*Argument SetApp(a *Application) App() *Application }
type CommandTraits ¶
type CommandTraits struct {
// contains filtered or unexported fields
}
func (*CommandTraits) AddArgument ¶
func (c *CommandTraits) AddArgument(arg *Argument)
func (*CommandTraits) App ¶
func (c *CommandTraits) App() *Application
func (*CommandTraits) Args ¶
func (c *CommandTraits) Args() []*Argument
func (*CommandTraits) SetApp ¶
func (c *CommandTraits) SetApp(a *Application)
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func NewWrapper ¶
func NewWrapper() (w *Wrapper)
func (*Wrapper) HandleShutdown ¶
Click to show internal directories.
Click to hide internal directories.