(shell string, command string, dir string)
| 51 | } |
| 52 | |
| 53 | func NewExecutor(shell string, command string, dir string) (*Executor, error) { |
| 54 | _, err := makeCommand(shell, command, dir) |
| 55 | if err != nil { |
| 56 | return nil, err |
| 57 | } |
| 58 | return &Executor{ |
| 59 | Shell: shell, |
| 60 | Command: command, |
| 61 | Dir: dir, |
| 62 | }, nil |
| 63 | } |
| 64 | |
| 65 | func (e *Executor) start( |
| 66 | log termlog.Stream, bufferr bool, |