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

Method Shell

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

Shell returns the shell of the given user.

(username string)

Source from the content-addressed store, hash-verified

35 HomeDir() (string, error)
36 // Shell returns the shell of the given user.
37 Shell(username string) (string, error)
38 // ModifyCommand modifies the command and arguments before execution based on
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.

Callers 9

sshMethod · 0.65
TestSSHFunction · 0.65
TestAgent_Stats_SSHFunction · 0.65
TestAgent_Stats_MagicFunction · 0.65
testSessionOutputFunction · 0.65
TestAgent_Metrics_SSHFunction · 0.65
CommandEnvMethod · 0.65
TestDockerEnvInfoerFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 7

TestSSHFunction · 0.52
TestAgent_Stats_SSHFunction · 0.52
TestAgent_Stats_MagicFunction · 0.52
testSessionOutputFunction · 0.52
TestAgent_Metrics_SSHFunction · 0.52
TestDockerEnvInfoerFunction · 0.52