Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCommand ¶
type FakeCommand struct { Args []string PresetError error // contains filtered or unexported fields }
func NewFakeCommand ¶
func NewFakeCommand(name string) *FakeCommand
func (*FakeCommand) GetArgs ¶
func (f *FakeCommand) GetArgs() []string
func (*FakeCommand) Name ¶
func (f *FakeCommand) Name() string
func (*FakeCommand) Run ¶
func (f *FakeCommand) Run(args []string) error
type FakeFactory ¶
type FakeFactory struct { CommandName string PresetError error PresetCommand *FakeCommand }
func (*FakeFactory) CreateCommand ¶
func (f *FakeFactory) CreateCommand(name string) (cmd.Cmd, error)
Click to show internal directories.
Click to hide internal directories.