mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
27 lines
346 B
Go
27 lines
346 B
Go
package cmd
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type runner interface {
|
|
SetDir(d string)
|
|
Stdout(out io.Writer)
|
|
Stderr(err io.Writer)
|
|
}
|
|
|
|
type execRunner interface {
|
|
runner
|
|
RunExecutable(e string, p ...string) error
|
|
}
|
|
|
|
type envExecRunner interface {
|
|
execRunner
|
|
SetEnv(e []string)
|
|
}
|
|
|
|
type shellRunner interface {
|
|
runner
|
|
RunShell(s string, c string) error
|
|
}
|