Skip to content

Commit

Permalink
chore: separate part of run_copy logic into generate method
Browse files Browse the repository at this point in the history
  • Loading branch information
blagoySimandov committed Jan 8, 2025
1 parent ddbcf5b commit 7ec3c55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions copier/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,10 @@ def run_copy(self) -> None:
self._check_unsafe("copy")
self._print_message(self.template.message_before_copy)
self._ask()
self._generate()

def _generate(self) -> None:
"""Generate the project files after answers have been collected."""
was_existing = self.subproject.local_abspath.exists()
try:
if not self.quiet:
Expand Down

0 comments on commit 7ec3c55

Please sign in to comment.