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

Struct commandEnvExecer

agent/agentcontainers/execer.go:23–27  ·  view source on GitHub ↗

commandEnvExecer is an agentexec.Execer that uses a CommandEnv to determine the shell, working directory, and environment variables for commands. It wraps another agentexec.Execer to provide the necessary context.

Source from the content-addressed store, hash-verified

21// for commands. It wraps another agentexec.Execer to provide the
22// necessary context.
23type commandEnvExecer struct {
24 logger slog.Logger
25 commandEnv CommandEnv
26 execer agentexec.Execer
27}
28
29func newCommandEnvExecer(
30 logger slog.Logger,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected