mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
e6f9d541ca
Otherwise we cannot set the streams on the level of the interfaces.
20 lines
295 B
Go
20 lines
295 B
Go
package cmd
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type execRunner interface {
|
|
RunExecutable(e string, p ...string) error
|
|
Dir(d string)
|
|
Stdout(out io.Writer)
|
|
Stderr(err io.Writer)
|
|
}
|
|
|
|
type shellRunner interface {
|
|
RunShell(s string, c string) error
|
|
Dir(d string)
|
|
Stdout(out io.Writer)
|
|
Stderr(err io.Writer)
|
|
}
|