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

Method HomeDir

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

HomeDir returns the home directory of the current user.

()

Source from the content-addressed store, hash-verified

33 Environ() []string
34 // HomeDir returns the home directory of the current user.
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

Callers 2

CommandEnvMethod · 0.65
TestDockerEnvInfoerFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestDockerEnvInfoerFunction · 0.52