gotool

package
v0.0.0-...-c79878f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListPackages

func ListPackages(commander Commander) ([]string, error)

ListPackages ...

Types

type CommandExecutor

type CommandExecutor struct{}

CommandExecutor ...

func (CommandExecutor) ExecuteCommand

func (c CommandExecutor) ExecuteCommand(stringCommand string, args ...string) (string, error)

ExecuteCommand ...

type Commander

type Commander interface {
	ExecuteCommand(string, ...string) (string, error)
}

Commander ...

type MockCommander

type MockCommander struct {
	mock.Mock
}

MockCommander ...

func GivenMockCommander

func GivenMockCommander() *MockCommander

GivenMockCommander ...

func (*MockCommander) ExecuteCommand

func (m *MockCommander) ExecuteCommand(command string, strArgs ...string) (string, error)

ExecuteCommand ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL