Documentation ¶
Overview ¶
package sh provides a convenience interface to issue shell commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...RunnerOption) *Runner
func (*Runner) New ¶
func (r *Runner) New(opts ...RunnerOption) *Runner
type RunnerOption ¶
type RunnerOption interface {
ApplyToRunner(r *Runner)
}
type WithCombinedOutput ¶
func (WithCombinedOutput) ApplyToRunner ¶
func (out WithCombinedOutput) ApplyToRunner(r *Runner)
type WithEnvironment ¶
func (WithEnvironment) ApplyToRunner ¶
func (e WithEnvironment) ApplyToRunner(r *Runner)
type WithLogger ¶
func (WithLogger) ApplyToRunner ¶
func (l WithLogger) ApplyToRunner(r *Runner)
type WithStderr ¶
func (WithStderr) ApplyToRunner ¶
func (stderr WithStderr) ApplyToRunner(r *Runner)
type WithStdout ¶
func (WithStdout) ApplyToRunner ¶
func (stdout WithStdout) ApplyToRunner(r *Runner)
type WithWorkDir ¶
type WithWorkDir string
func (WithWorkDir) ApplyToRunner ¶
func (wd WithWorkDir) ApplyToRunner(r *Runner)
Click to show internal directories.
Click to hide internal directories.