Documentation
¶
Index ¶
- type DoWithFeedbackFunc
- type RunningCommand
- func (r *RunningCommand) AppendLine(lineStr string, isErrorLine bool)
- func (r *RunningCommand) ForceKill()
- func (r *RunningCommand) Start(timeoutDuration time.Duration) *RunningCommand
- func (r *RunningCommand) StartAndDoWithFeedback(timeoutDuration time.Duration, doWithFeedbackFunc DoWithFeedbackFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoWithFeedbackFunc ¶
type RunningCommand ¶
type RunningCommand struct { OnFinishAction actionOnFinish AdditionalObject interface{} WorkingDirectory string CommandExePath string CommandArguments []string CommandObj *exec.Cmd CurrentFeedback []string IsRunning bool RanSuccessfully bool ReadStdOutChannel chan string ReadStdErrChannel chan string QuitChannel chan bool CompletionTime time.Time WasKilledBeforeFinish bool // contains filtered or unexported fields }
func New ¶
func New(onFinishAction actionOnFinish, additionalObject interface{}, commandExePath string, commandArguments ...string) *RunningCommand
func (*RunningCommand) AppendLine ¶
func (r *RunningCommand) AppendLine(lineStr string, isErrorLine bool)
func (*RunningCommand) ForceKill ¶
func (r *RunningCommand) ForceKill()
func (*RunningCommand) Start ¶
func (r *RunningCommand) Start(timeoutDuration time.Duration) *RunningCommand
func (*RunningCommand) StartAndDoWithFeedback ¶
func (r *RunningCommand) StartAndDoWithFeedback(timeoutDuration time.Duration, doWithFeedbackFunc DoWithFeedbackFunc)
Click to show internal directories.
Click to hide internal directories.