1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00
sap-jenkins-library/cmd/interfaces.go

23 lines
300 B
Go
Raw Normal View History

package cmd
import (
"io"
)
type runner interface {
SetDir(d string)
SetEnv(e []string)
Stdout(out io.Writer)
Stderr(err io.Writer)
}
type execRunner interface {
runner
RunExecutable(e string, p ...string) error
}
type shellRunner interface {
runner
RunShell(s string, c string) error
}