MCPcopy Index your code
hub / github.com/coder/coder / WithExecer

Function WithExecer

agent/agentcontainers/api.go:127–131  ·  view source on GitHub ↗

WithExecer sets the agentexec.Execer implementation to use.

(execer agentexec.Execer)

Source from the content-addressed store, hash-verified

125
126// WithExecer sets the agentexec.Execer implementation to use.
127func WithExecer(execer agentexec.Execer) Option {
128 return func(api *API) {
129 api.execer = execer
130 }
131}
132
133// WithCommandEnv sets the CommandEnv implementation to use.
134func WithCommandEnv(ce CommandEnv) Option {

Callers 2

initMethod · 0.92
TestAPIFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestAPIFunction · 0.74