(hostPath: string)
| 148 | export const output = makeLog(createPlainLog(text => process.stdout.write(text), () => LogLevel.Trace)); |
| 149 | |
| 150 | export 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 | } |
no test coverage detected