mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 13:54:59 +00:00
better
This commit is contained in:
parent
936b390d1d
commit
fe13bf069d
1 changed files with 10 additions and 5 deletions
15
coder.py
15
coder.py
|
@ -39,7 +39,7 @@ AFTER
|
|||
... new lines to replace them with ...
|
||||
```
|
||||
|
||||
Don't forget the ``` delimiters!
|
||||
ALWAYS USE THE ``` DELIMITERS!
|
||||
'''
|
||||
|
||||
prompt_comments = '''
|
||||
|
@ -166,11 +166,18 @@ The contents of the files have been updated!
|
|||
USE THESE FILES NOW.
|
||||
MAKE ANY CHANGES BASED OFF THESE FILES!
|
||||
'''
|
||||
def run(self):
|
||||
def get_input(self):
|
||||
|
||||
print()
|
||||
print('='*60)
|
||||
sys.stdout.write('> ')
|
||||
sys.stdout.flush()
|
||||
inp = input()
|
||||
print()
|
||||
return inp
|
||||
|
||||
def run(self):
|
||||
inp = self.get_input()
|
||||
|
||||
prompt = ''
|
||||
prompt += inp
|
||||
|
@ -202,9 +209,7 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
|||
print(err)
|
||||
print()
|
||||
|
||||
sys.stdout.write('> ')
|
||||
sys.stdout.flush()
|
||||
inp = input()
|
||||
inp = self.get_input()
|
||||
|
||||
if False and self.files_modified():
|
||||
for fname in self.fnames:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue