# Functions
BatchEscape escapes a string for use with an `ECHO` statement in a Windows Batch file.
CaptureStdout captures the entire stdout stream to a string instead of the shell's stdout.
ExitCode extracts an exit code from an error where the platform supports it, otherwise returns 0 for no error and 1 for an error.
IsExitError reports whether err is an [ExitError] or [exec.ExitError].
IsExitSignaled returns true if the error is an ExitError that was caused by receiving a signal.
LookPath searches for an executable binary named file in the directories within the path variable, which is a colon delimited path.
New returns a new Shell.
No description provided by the author
NewTestShell creates a shell with suitable defaults for tests.
No description provided by the author
ShowPrompt causes the command and arguments being run to be printed in the shell's stdout.
ShowStderr can be used to hide stderr from the shell's stdout.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithExtraEnv can be used to set additional env vars for this run.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithStringSearch causes both the stdout and stderr streams of the process to be searched for strings.
No description provided by the author
No description provided by the author
# Variables
DiscardLogger discards all log messages.
ErrShellNotStarted is returned when the shell has not started a process.
StderrLogger is a Logger that writes to Stderr.
# Structs
Command represents a command that can be run in a shell.
ExitError is an error that carries a shell exit code.
No description provided by the author
Shell represents a virtual shell, handles logging, executing commands and provides hooks for capturing output and exit conditions.
No description provided by the author
WriterLogger provides a logger that writes to an io.Writer.
# Type aliases
No description provided by the author
RunCommandOpt is the type of functional options that can be passed to Command.Run.