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

Method ModifyCommand

agent/usershell/usershell.go:41–41  ·  view source on GitHub ↗

ModifyCommand modifies the command and arguments before execution based on the environment. This is useful for executing a command inside a container. In the default case, the command and arguments are returned unchanged.

(name string, args ...string)

Source from the content-addressed store, hash-verified

39 // the environment. This is useful for executing a command inside a container.
40 // In the default case, the command and arguments are returned unchanged.
41 ModifyCommand(name string, args ...string) (string, []string)
42}
43
44// SystemEnvInfo encapsulates the information about the environment

Callers 3

CreateCommandMethod · 0.65
TestIntegrationDockerFunction · 0.65
TestDockerEnvInfoerFunction · 0.65

Implementers 2

SystemEnvInfoagent/usershell/usershell.go
fakeEnvInfoeragent/agentssh/agentssh_test.go

Calls

no outgoing calls

Tested by 2

TestIntegrationDockerFunction · 0.52
TestDockerEnvInfoerFunction · 0.52