package
0.0.0-20190618225709-2cfd321de3ee
Repository: https://github.com/uber-go/tools.git
Documentation: pkg.go.dev
# Functions
ExecCmd returns a new Cmd for the given exec.Cmd.
ExecCmds returns a slice of Cmds for the given exec.Cmds.
NewRunner returns a new Runner.
WithClock returns a RunnerOption that will make the Runner use the given Clock.
WithEventHandler returns a RunnerOption that will use the given EventHandler.
WithFastFail returns a RunnerOption that will return error fun Run as soon as one of the commands fails.
WithMaxConcurrentCmds returns a RunnerOption that will make the Runner only run maxConcurrentCmds at once, or unlimited if 0.
# Constants
DefaultFastFail is the default value for fast fail.
EventTypeCmdFinished says that a command finished.
EventTypeCmdStarted says that a command started.
EventTypeFinished says that the runner finished.
EventTypeStarted says that the runner started.
# Variables
DefaultClock is the default function to use as a clock.
DefaultEventHandler is the default Event handler.
DefaultMaxConcurrentCmds is the default value for the maximum number of concurrent commands.
# Type aliases
EventType is an event type during the runner's run call.
RunnerOption is an option for a new Runner.