2017-01-24 23:55:32 +00:00
|
|
|
package shim
|
2017-01-12 18:29:37 +00:00
|
|
|
|
2017-01-26 23:09:59 +00:00
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/crosbymichael/console"
|
|
|
|
)
|
2017-01-12 18:29:37 +00:00
|
|
|
|
2017-01-24 00:18:10 +00:00
|
|
|
type process interface {
|
|
|
|
// Pid returns the pid for the process
|
|
|
|
Pid() int
|
|
|
|
// Resize resizes the process console
|
2017-01-26 19:29:19 +00:00
|
|
|
Resize(ws console.WinSize) error
|
2017-01-24 00:18:10 +00:00
|
|
|
// Exited sets the exit status for the process
|
|
|
|
Exited(status int)
|
|
|
|
// Status returns the exit status
|
|
|
|
Status() int
|
2017-01-26 23:09:59 +00:00
|
|
|
Delete(context.Context) error
|
2017-01-12 18:29:37 +00:00
|
|
|
}
|