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

Function getUserFromPasswdDB

src/spec-common/injectHeadless.ts:300–306  ·  view source on GitHub ↗
(shellServer: ShellServer, userNameOrId: string)

Source from the content-addressed store, hash-verified

298}
299
300export async function getUserFromPasswdDB(shellServer: ShellServer, userNameOrId: string) {
301 const { stdout } = await shellServer.exec(getEntPasswdShellCommand(userNameOrId), { logOutput: false });
302 if (!stdout.trim()) {
303 return undefined;
304 }
305 return parseUserInPasswdDB(stdout);
306}
307
308export interface PasswdUser {
309 name: string;

Callers 3

getContainerPropertiesFunction · 0.85

Calls 3

getEntPasswdShellCommandFunction · 0.90
parseUserInPasswdDBFunction · 0.85
execMethod · 0.65

Tested by

no test coverage detected