MCPcopy Index your code
hub / github.com/docker/docker-agent / WithWorkingDir

Function WithWorkingDir

pkg/runtime/runtime.go:423–427  ·  view source on GitHub ↗

WithWorkingDir sets the working directory for hooks execution

(dir string)

Source from the content-addressed store, hash-verified

421
422// WithWorkingDir sets the working directory for hooks execution
423func 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
430func WithEnv(env []string) Opt {

Callers 3

newRuntimeMethod · 0.92
runtimeOptsMethod · 0.92

Calls

no outgoing calls