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

Function logUMask

src/spec-node/utils.ts:75–95  ·  view source on GitHub ↗
(params: DockerResolverParameters)

Source from the content-addressed store, hash-verified

73}
74
75export async function logUMask(params: DockerResolverParameters): Promise<string | undefined> {
76 // process.umask() is deprecated: https://nodejs.org/api/process.html#processumask
77 const { common } = params;
78 const { cliHost, output } = common;
79 if (cliHost.platform === 'win32') {
80 return undefined;
81 }
82 try {
83 const { stdout } = await runCommandNoPty({
84 exec: cliHost.exec,
85 cmd: 'umask',
86 cwd: cliHost.cwd,
87 env: cliHost.env,
88 output,
89 print: true,
90 });
91 return stdout.toString().trim();
92 } catch {
93 return undefined;
94 }
95}
96
97export function isBuildxCacheToInline(buildxCacheTo: string | undefined): boolean {
98 if (!buildxCacheTo) {

Callers 1

buildAndExtendImageFunction · 0.90

Calls 1

runCommandNoPtyFunction · 0.90

Tested by

no test coverage detected