Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AfterRunner ¶
type AfterRunner interface {
After() error
}
AfterRunner is the interface that commands can implement to run logic after execution.
type App ¶ added in v2.0.3
type App struct {
RootNode *parser.CommandNode
}
App represents a CLI application.
func (*App) AddCommand ¶ added in v2.0.3
func (a *App) AddCommand(name string, cmd *parser.CommandNode)
AddCommand adds a dynamic command to the application.
type BeforeRunner ¶
type BeforeRunner interface {
Before() error
}
BeforeRunner is the interface that commands can implement to run logic before execution.
Click to show internal directories.
Click to hide internal directories.