WithWorkingDir sets the working directory for hooks execution
(dir string)
| 421 | |
| 422 | // WithWorkingDir sets the working directory for hooks execution |
| 423 | func WithWorkingDir(dir string) Opt { |
| 424 | return func(r *LocalRuntime) { |
| 425 | r.workingDir = dir |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | // WithEnv sets the environment variables for hooks execution |
| 430 | func WithEnv(env []string) Opt { |
no outgoing calls