runner

package
v0.0.0-...-bc175e6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandInterceptor = func(cmd *exec.Cmd) *exec.Cmd {
	return cmd
}

Functions

func Curl

func Curl(args ...string) *gexec.Session

func NewCmdRunner

func NewCmdRunner(session *gexec.Session, timeout time.Duration) *cmdRunner

NewCmdRunner has default value of exitCode to be 0, and attempts to be 1. To change these, use the builder methods WithExitCode and WithAttempts.

func Run

func Run(executable string, args ...string) *gexec.Session

Types

This section is empty.

Jump to

Keyboard shortcuts

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