1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/cmd/interfaces.go
Daniel Kurzynski 0222bf83d1
Run npm scripts in virtual frame buffer and extend command.go to run executable asynchronously (#1669)
Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
Co-authored-by: Florian Wilhelm <florian.wilhelm02@sap.com>
2020-06-16 11:42:51 +02:00

25 lines
437 B
Go

package cmd
import (
"github.com/SAP/jenkins-library/pkg/command"
"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
RunExecutableInBackground(executable string, params ...string) (command.Execution, error)
}
type shellRunner interface {
runner
RunShell(s string, c string) error
}