package
0.0.0-20250312033235-bd4f568112dc
Repository: https://github.com/sourcegraph/src-cli.git
Documentation: pkg.go.dev

# Packages

Package expect uses the middleware concept in internal/exec to mock external commands.

# Functions

Command wraps os/exec.Command, and implements the same behaviour.
CommandContext wraps os/exec.CommandContext, and implements the same behaviour.
NewMiddleware adds a middleware to the command creation stack.

# Structs

CmdCreatorMiddleware creates *exec.Cmd instances that delegate command creation to a provided callback.

# Type aliases

CmdCreator instances are used to create commands.