You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ScriptsBin string // Directory of binaries of Go scripts.
Stdout io.Writer
Stderr io.Writer
}
// RunScript implements [World].
func (w RealWorld) RunScript(name string, args ...string) error {
if w.ScriptsBin == "" { // A bare name would be looked up in PATH.
return ErrNoScriptsBin
}
cmd := exec.CommandContext(context.Background(), filepath.Join(w.ScriptsBin, name), args...) //nolint:gosec // Running a binary of a Go script is the purpose.