exec

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runnable

type Runnable struct {
	// contains filtered or unexported fields
}

Runnable implements the Runnable interface using exec.Cmd

func NewRunnable

func NewRunnable(bin string, args ...string) *Runnable

NewRunnable creates a new Runnable instance

func (*Runnable) EnableOutputBuffering

func (r *Runnable) EnableOutputBuffering()

EnableOutputBuffering ensures that nothing is written to the output in case of an error

func (*Runnable) Run

func (r *Runnable) Run(ctx context.Context, options []string, input io.Reader, output io.Writer) error

Run implements the Runnable interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL