environment/exec: Seperate Exec and Wait
This commit is contained in:
parent
2a308ee03c
commit
a590d93e76
14 changed files with 90 additions and 117 deletions
|
|
@ -45,7 +45,7 @@ type Environment interface {
|
|||
DialContext(context context.Context, network, address string) (net.Conn, error)
|
||||
|
||||
Executable() (string, error)
|
||||
Exec(ctx context.Context, io stream.IOStream, workdir string, exe string, argv ...string) int
|
||||
Exec(ctx context.Context, io stream.IOStream, workdir string, exe string, argv ...string) func() int
|
||||
LookPathAbs(name string) (string, error)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue