mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor to use io.read_text
This commit is contained in:
parent
d30fb94c72
commit
7542449629
1 changed files with 3 additions and 2 deletions
|
@ -299,8 +299,9 @@ def main(args=None, input=None, output=None):
|
||||||
coder.commit(ask=True, which="repo_files")
|
coder.commit(ask=True, which="repo_files")
|
||||||
|
|
||||||
if args.apply:
|
if args.apply:
|
||||||
with open(args.apply, "r") as f:
|
content = io.read_text(args.apply)
|
||||||
content = f.read()
|
if content is None:
|
||||||
|
return
|
||||||
coder.apply_updates(content)
|
coder.apply_updates(content)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue