Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitTypeNormal = "normal" ExitTypeTimeout = "timeout" ExitTypeStop = "stop" )
command exit types
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
Name string
Command string
Args []string
Env []string
Timeout time.Duration
StatusUpdate time.Duration
StatusFn func(cmd.Status)
ExitFn func(string, cmd.Status)
// contains filtered or unexported fields
}
Command deails
func (*Command) StartAndWait ¶
StartAndWait triggers the command and waits till it completes
Click to show internal directories.
Click to hide internal directories.