mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44: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 ...
|
... new lines to replace them with ...
|
||||||
```
|
```
|
||||||
|
|
||||||
Don't forget the ``` delimiters!
|
ALWAYS USE THE ``` DELIMITERS!
|
||||||
'''
|
'''
|
||||||
|
|
||||||
prompt_comments = '''
|
prompt_comments = '''
|
||||||
|
@ -166,11 +166,18 @@ The contents of the files have been updated!
|
||||||
USE THESE FILES NOW.
|
USE THESE FILES NOW.
|
||||||
MAKE ANY CHANGES BASED OFF THESE FILES!
|
MAKE ANY CHANGES BASED OFF THESE FILES!
|
||||||
'''
|
'''
|
||||||
def run(self):
|
def get_input(self):
|
||||||
|
|
||||||
|
print()
|
||||||
|
print('='*60)
|
||||||
sys.stdout.write('> ')
|
sys.stdout.write('> ')
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
inp = input()
|
inp = input()
|
||||||
|
print()
|
||||||
|
return inp
|
||||||
|
|
||||||
|
def run(self):
|
||||||
|
inp = self.get_input()
|
||||||
|
|
||||||
prompt = ''
|
prompt = ''
|
||||||
prompt += inp
|
prompt += inp
|
||||||
|
@ -202,9 +209,7 @@ MAKE ANY CHANGES BASED OFF THESE FILES!
|
||||||
print(err)
|
print(err)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
sys.stdout.write('> ')
|
inp = self.get_input()
|
||||||
sys.stdout.flush()
|
|
||||||
inp = input()
|
|
||||||
|
|
||||||
if False and self.files_modified():
|
if False and self.files_modified():
|
||||||
for fname in self.fnames:
|
for fname in self.fnames:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue