Documentation ¶
Index ¶
- func GetExitCodeForRunCommandError(err error) (int, error)
- func RunCommand(t *testing.T, command Command)
- func RunCommandAndGetOutput(t *testing.T, command Command) string
- func RunCommandAndGetOutputE(t *testing.T, command Command) (string, error)
- func RunCommandE(t *testing.T, command Command) error
- type Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExitCodeForRunCommandError ¶
Try to read the exit code for the error object returned from running a shell command. This is a bit tricky to do in a way that works across platforms.
func RunCommand ¶
Run a shell command and redirect its stdout and stderr to the stdout of the atomic script itself
func RunCommandAndGetOutput ¶
Run a shell command and return its stdout and stderr as a string. The stdout and stderr of that command will also be printed to the stdout and stderr of this Go program to make debugging easier.
func RunCommandAndGetOutputE ¶
Run a shell command and return its stdout and stderr as a string. The stdout and stderr of that command will also be printed to the stdout and stderr of this Go program to make debugging easier.
Types ¶
Click to show internal directories.
Click to hide internal directories.