Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) AddAfterFunc ¶
func (*App) AddBeforeFunc ¶
func (*App) AddGlobalFlagsFromStruct ¶
func (a *App) AddGlobalFlagsFromStruct(source interface{})
func (*App) RegisterCategory ¶
func (*App) RegisterCommand ¶
type Context ¶
type Context struct { Ctx stdContext.Context Cli *cli.Context // contains filtered or unexported fields }
type MockHandler ¶
MockHandler is an autogenerated mock type for the Handler type
func NewMockHandler ¶ added in v0.3.0
func NewMockHandler(t interface { mock.TestingT Cleanup(func()) }) *MockHandler
NewMockHandler creates a new instance of MockHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockHandler) Execute ¶
func (_m *MockHandler) Execute(context *Context) error
Execute provides a mock function with given fields: context
type MockHook ¶ added in v0.3.0
MockHook is an autogenerated mock type for the Hook type
func NewMockHook ¶ added in v0.3.0
NewMockHook creates a new instance of MockHook. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
Click to show internal directories.
Click to hide internal directories.