MCPcopy Index your code
hub / github.com/devcontainers/cli / getUser

Function getUser

src/spec-common/injectHeadless.ts:277–279  ·  view source on GitHub ↗
(shellServer: ShellServer)

Source from the content-addressed store, hash-verified

275}
276
277export async function getUser(shellServer: ShellServer) {
278 return (await shellServer.exec('id -un')).stdout.trim();
279}
280
281export async function getHomeFolder(shellServer: ShellServer, containerEnv: NodeJS.ProcessEnv, passwdUser: PasswdUser | undefined) {
282 if (containerEnv.HOME) {

Callers 1

getContainerPropertiesFunction · 0.85

Calls 1

execMethod · 0.65

Tested by

no test coverage detected