Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BashRunner ¶
type BashRunner struct {
// contains filtered or unexported fields
}
func NewBashRunner ¶
func NewBashRunner(opts ...Option) *BashRunner
NewBashRunner creates a new BashRunner instance
func (*BashRunner) Run ¶
func (br *BashRunner) Run(script string, envVars map[string]string) (runner.ScriptResult, error)
type MockRunner ¶
type MockRunner struct {
Result runner.ScriptResult
Error error
}
MockRunner implements Runner interface for testing
func (*MockRunner) Run ¶
func (m *MockRunner) Run(script string, envVars map[string]string) (runner.ScriptResult, error)
Run implements the Runner interface for MockRunner
type Option ¶
type Option func(*BashRunner)
func WithTempDir ¶
WithTempDir sets a custom temporary directory
Click to show internal directories.
Click to hide internal directories.