(src: string, dest: string, dryRun: boolean)
| 266 | } |
| 267 | |
| 268 | async function copyFile(src: string, dest: string, dryRun: boolean) { |
| 269 | if (!(await exists(src))) return false; |
| 270 | if (dryRun) { |
| 271 | console.log(` would copy: ${src} → ${dest}`); |
| 272 | return true; |
| 273 | } |
| 274 | await mkdir(path.dirname(dest), { recursive: true }); |
| 275 | await cp(src, dest); |
| 276 | console.log(` copied: ${src} → ${dest}`); |
| 277 | return true; |
| 278 | } |
| 279 | |
| 280 | const OPENCODE_RUN = 'opencode run'; |
| 281 |
no test coverage detected