MCPcopy Create free account
hub / github.com/delinoio/oss / dockerClientEnvironment

Function dockerClientEnvironment

scripts/dev-environment/process.mjs:72–79  ·  view source on GitHub ↗
(source = process.env)

Source from the content-addressed store, hash-verified

70}
71
72export function dockerClientEnvironment(source = process.env) {
73 const names = ["DOCKER_HOST", "DOCKER_CONTEXT"];
74 return Object.fromEntries(
75 names
76 .filter((name) => source[name] !== undefined)
77 .map((name) => [name, source[name]]),
78 );
79}
80
81export function spawnResult(command, args, options = {}) {
82 const child = spawn(command, args, { shell: false, ...options });

Callers

nothing calls this directly

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected