(path: Path, content: str, dry_run: bool)
| 200 | |
| 201 | |
| 202 | def _write_file(path: Path, content: str, dry_run: bool) -> None: |
| 203 | if dry_run: |
| 204 | print(f" [dry-run] write {path}") |
| 205 | return |
| 206 | path.parent.mkdir(parents=True, exist_ok=True) |
| 207 | path.write_text(content) |
| 208 | print(f" Created {path}") |
| 209 | |
| 210 | |
| 211 | def _copy_file(src: Path, dest: Path, dry_run: bool) -> None: |