(name, fallback = null)
| 5 | const { detectWindowsCodexSetup } = require('../core/codex/native-integrations'); |
| 6 | |
| 7 | function arg(name, fallback = null) { |
| 8 | const prefix = `${name}=`; |
| 9 | const inline = process.argv.find((value) => value.startsWith(prefix)); |
| 10 | if (inline) return inline.slice(prefix.length); |
| 11 | const idx = process.argv.indexOf(name); |
| 12 | return idx >= 0 ? process.argv[idx + 1] : fallback; |
| 13 | } |
| 14 | |
| 15 | const report = detectWindowsCodexSetup({ |
| 16 | projectRoot: arg('--project-root', process.cwd()), |
no outgoing calls
no test coverage detected