Documentation ¶
Index ¶
- type Action
- type App
- type ConsoleMock
- func (m *ConsoleMock[T]) Args() []string
- func (m *ConsoleMock[T]) Command(name string) bool
- func (m *ConsoleMock[T]) ExecName() string
- func (m *ConsoleMock[T]) Exit(code int)
- func (m *ConsoleMock[T]) Handle(a App) (Action[T], []Option[T], error)
- func (m *ConsoleMock[T]) Printf(format string, a ...any) (int, error)
- func (m *ConsoleMock[T]) ProfileConfig(a string) *types.Config
- func (m *ConsoleMock[T]) Run(opts ...Option[T]) error
- func (m *ConsoleMock[T]) RunSubCommand() error
- func (m *ConsoleMock[T]) Usage(format string)
- func (m *ConsoleMock[T]) UserConfig() *types.Config
- type Handler
- type HandlerMock
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleMock ¶
func (*ConsoleMock[T]) Args ¶
func (m *ConsoleMock[T]) Args() []string
func (*ConsoleMock[T]) Command ¶
func (m *ConsoleMock[T]) Command(name string) bool
func (*ConsoleMock[T]) ExecName ¶
func (m *ConsoleMock[T]) ExecName() string
func (*ConsoleMock[T]) Exit ¶
func (m *ConsoleMock[T]) Exit(code int)
func (*ConsoleMock[T]) Handle ¶
func (m *ConsoleMock[T]) Handle(a App) (Action[T], []Option[T], error)
func (*ConsoleMock[T]) Printf ¶
func (m *ConsoleMock[T]) Printf(format string, a ...any) (int, error)
func (*ConsoleMock[T]) ProfileConfig ¶
func (m *ConsoleMock[T]) ProfileConfig(a string) *types.Config
func (*ConsoleMock[T]) Run ¶
func (m *ConsoleMock[T]) Run(opts ...Option[T]) error
func (*ConsoleMock[T]) RunSubCommand ¶
func (m *ConsoleMock[T]) RunSubCommand() error
func (*ConsoleMock[T]) Usage ¶
func (m *ConsoleMock[T]) Usage(format string)
func (*ConsoleMock[T]) UserConfig ¶
func (m *ConsoleMock[T]) UserConfig() *types.Config
type HandlerMock ¶
func NewHandlerMock ¶
func (*HandlerMock[T]) Handle ¶
func (m *HandlerMock[T]) Handle(a App) (Action[T], []Option[T], error)
func (*HandlerMock[T]) Run ¶
func (m *HandlerMock[T]) Run(opts ...Option[T]) error
Click to show internal directories.
Click to hide internal directories.