Documentation
¶
Index ¶
- func EchoCommand(output string) func(context.Context, string, ...string) *exec.Cmd
- func FailCommand() func(context.Context, string, ...string) *exec.Cmd
- func FakeExecutable(path string) func() (string, error)
- func FakeLookPath(path string) func(string) (string, error)
- func MissingLookPath() func(string) (string, error)
- func NoopCommand() func(context.Context, string, ...string) *exec.Cmd
- func TrackingCommand(log *[]string) func(context.Context, string, ...string) *exec.Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EchoCommand ¶
EchoCommand returns a command factory that echoes the given output.
func FailCommand ¶
FailCommand returns a command factory that always exits non-zero.
func FakeExecutable ¶
FakeExecutable returns an osExecutable function that always returns the given path.
func FakeLookPath ¶
FakeLookPath returns a lookup function that always succeeds with the given path.
func MissingLookPath ¶
MissingLookPath returns a lookup function that always fails with "not found".
func NoopCommand ¶
NoopCommand returns a command factory that produces a no-op process.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.