2018-05-10 18:11:18 +00:00
|
|
|
package process
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os/exec"
|
|
|
|
)
|
|
|
|
|
2018-05-10 21:29:16 +00:00
|
|
|
type Process interface {
|
2018-05-14 18:11:18 +00:00
|
|
|
Start() error
|
|
|
|
Wait() error
|
2018-05-10 18:11:18 +00:00
|
|
|
}
|
|
|
|
|
2018-05-10 21:29:16 +00:00
|
|
|
type exeProcess struct {
|
|
|
|
*exec.Cmd
|
2018-05-10 18:11:18 +00:00
|
|
|
}
|