Documentation ¶
Overview ¶
Package shell handles interactions with the OS shell
Index ¶
Constants ¶
View Source
const Type = "shell"
Type shell represents a shell command
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execute ¶
type Execute struct {
Command command
}
Execute represents a way to execute shell commands with values piped to them.
func (*Execute) ExecuteWithValue ¶
ExecuteWithValue executes a shell command with a value piped to it. If it exits with code 0, no error is returned and the stdout is captured and returned. If it exits with code 1, an error is returned and the stderr is captured and returned. If the timeout is reached, an error is returned.
Click to show internal directories.
Click to hide internal directories.