mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
cleanups
This commit is contained in:
parent
c4c81341a2
commit
f0d56e3cce
1 changed files with 11 additions and 1 deletions
12
coder.py
12
coder.py
|
@ -182,7 +182,11 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
||||||
|
|
||||||
print()
|
print()
|
||||||
print('='*60)
|
print('='*60)
|
||||||
inp = input('> ')
|
try:
|
||||||
|
inp = input('> ')
|
||||||
|
except EOFError:
|
||||||
|
return
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
||||||
#readline.add_history(inp)
|
#readline.add_history(inp)
|
||||||
|
@ -198,6 +202,8 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
||||||
did_edits = False
|
did_edits = False
|
||||||
while True:
|
while True:
|
||||||
inp = self.get_input()
|
inp = self.get_input()
|
||||||
|
if inp is None:
|
||||||
|
return
|
||||||
|
|
||||||
if did_edits:
|
if did_edits:
|
||||||
files_prefix = 'I made your suggested changes, here are the updated files:'
|
files_prefix = 'I made your suggested changes, here are the updated files:'
|
||||||
|
@ -257,6 +263,10 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
||||||
continue
|
continue
|
||||||
|
|
||||||
pbar.update(len(text))
|
pbar.update(len(text))
|
||||||
|
|
||||||
|
pbar.update(show_progress)
|
||||||
|
pbar.close()
|
||||||
|
|
||||||
resp = ''.join(resp)
|
resp = ''.join(resp)
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue