chore(deps): implement github.com/qdm12/golibs/command locally (#2418)
This commit is contained in:
14
internal/openvpn/interfaces.go
Normal file
14
internal/openvpn/interfaces.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package openvpn
|
||||
|
||||
import "os/exec"
|
||||
|
||||
type CmdStarter interface {
|
||||
Start(cmd *exec.Cmd) (
|
||||
stdoutLines, stderrLines <-chan string,
|
||||
waitError <-chan error, startErr error)
|
||||
}
|
||||
|
||||
type CmdRunStarter interface {
|
||||
Run(cmd *exec.Cmd) (output string, err error)
|
||||
CmdStarter
|
||||
}
|
||||
Reference in New Issue
Block a user