exec

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Replacer

type Replacer interface {
	Replace(string) (string, error)
}

A Replacer replaces strings

type Runner

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

A Runner runs commands with `os/exec.Cmd`s

func NewRunner

func NewRunner(
	in io.Reader,
	out io.Writer,
	env []string,
	replacer Replacer,
	name string,
	args ...string) *Runner

NewRunner creates a new Runner

func (*Runner) HasConfigurationChanged

func (r *Runner) HasConfigurationChanged() (bool, error)

HasConfigurationChanged returns true if the configuration, evaluated now, is different from the configuration that was used to initially run the command.

If the command is not running, HasConfigurationChanged returns false.

func (*Runner) Restart

func (r *Runner) Restart()

Restart restarts the running command

func (*Runner) Run

func (r *Runner) Run() error

func (*Runner) Stop

func (r *Runner) Stop()

Stop stops the running command

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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