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

Function createCLIParams

src/test/testUtils.ts:150–171  ·  view source on GitHub ↗
(hostPath: string)

Source from the content-addressed store, hash-verified

148export const output = makeLog(createPlainLog(text => process.stdout.write(text), () => LogLevel.Trace));
149
150export async function createCLIParams(hostPath: string) {
151 const cliHost = await getCLIHost(hostPath, loadNativeModule, true);
152 const dockerComposeCLI = dockerComposeCLIConfig({
153 exec: cliHost.exec,
154 env: cliHost.env,
155 output,
156 }, 'docker', 'docker-compose');
157 const buildPlatformInfo = {
158 os: mapNodeOSToGOOS(cliHost.platform),
159 arch: mapNodeArchitectureToGOARCH(cliHost.arch),
160 };
161 const cliParams: DockerCLIParameters = {
162 cliHost,
163 dockerCLI: 'docker',
164 dockerComposeCLI,
165 env: {},
166 output,
167 buildPlatformInfo,
168 targetPlatformInfo: buildPlatformInfo,
169};
170 return cliParams;
171}

Callers 2

Calls 4

dockerComposeCLIConfigFunction · 0.90
mapNodeOSToGOOSFunction · 0.90
getCLIHostFunction · 0.85

Tested by

no test coverage detected