mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
wip: Added a dry-run option to do_replace function.
This commit is contained in:
parent
0b8690654e
commit
ab68022fb9
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ def do_replace(fname, before_text, after_text, dry_run=False):
|
|||
if not new_content:
|
||||
return
|
||||
|
||||
fname.write_text(new_content)
|
||||
if not dry_run:
|
||||
fname.write_text(new_content)
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue