( arch: string = process.arch, env: NodeJS.ProcessEnv = process.env, )
| 82 | * actual daemon arch instead of relying on local `process.arch`. |
| 83 | */ |
| 84 | export function resolveDockerPlatform( |
| 85 | arch: string = process.arch, |
| 86 | env: NodeJS.ProcessEnv = process.env, |
| 87 | ): string { |
| 88 | const override = env.HYPERFRAMES_DOCKER_PLATFORM; |
| 89 | if (override && override.trim() !== "") return override.trim(); |
| 90 | return arch === "arm64" ? "linux/arm64" : "linux/amd64"; |
| 91 | } |
| 92 | |
| 93 | // Pure argv builder — the cognitive count tracks the number of optional CLI |
| 94 | // flags it forwards, not branching depth. Each conditional spread is one |
no outgoing calls
no test coverage detected