Documentation ¶
Overview ¶
Package command provides support for addons to executing (CLI) commands.
Index ¶
Constants ¶
View Source
const ( // Disabled reports: NOTHING. Disabled = -2 // Error reports: error. Error = -1 // Default reports: error, started, succeeded. Default = 0 // LiveOutput reports: error, started, succeeded, output (live). LiveOutput = 1 )
Verbosity.
View Source
const ( // Backoff rate increment. Backoff = time.Millisecond * 100 // MaxBackoff max backoff. MaxBackoff = 10 * Backoff // MinBackoff minimum backoff. MinBackoff = Backoff )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
Command execution.
func (*Command) Run ¶
Run executes the command. The command and output are both reported in task Report.Activity.
type Reporter ¶ added in v0.3.0
type Reporter struct { Verbosity int // contains filtered or unexported fields }
Reporter activity reporter.
Click to show internal directories.
Click to hide internal directories.