Versions in this module Expand all Collapse all v0 v0.0.1 Oct 12, 2021 Changes in this version + const InterruptedByOutputHandler + const InterruptedByTimer + var DefReadInterval = time.Second * 1 + var DefReadTimeout = time.Second * 30 + var DefTimeout = time.Second * 120 + var ErrOperation = errors.New("command finished with error") + type CmdWorker struct + Status gocmd.Status + func NewCmdWorker(cmd string, args []string, outputHandler func(OutputStatus) bool) CmdWorker + func (w *CmdWorker) Run(stdin io.Reader) (status gocmd.Status, err error) + func (w *CmdWorker) SetOutputHandler(outputHandler func(OutputStatus) bool) + func (w *CmdWorker) SetReadInterval(t time.Duration) + func (w *CmdWorker) SetReadTimeout(t time.Duration) + func (w *CmdWorker) SetTimeout(t time.Duration) + func (w *CmdWorker) Stop() + type InterruptedError struct + Reason int + func (e *InterruptedError) Error() (str string) + type OutputStatus struct + NewStderrLines []string + NewStdoutlines []string