mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
WIP: Add pretty print to run_loop method.
This commit is contained in:
parent
85fb17710f
commit
64c3af37df
1 changed files with 5 additions and 5 deletions
10
coder.py
10
coder.py
|
@ -142,11 +142,6 @@ class Coder:
|
||||||
return prompt
|
return prompt
|
||||||
|
|
||||||
def get_input(self):
|
def get_input(self):
|
||||||
if self.pretty:
|
|
||||||
self.console.rule()
|
|
||||||
else:
|
|
||||||
print()
|
|
||||||
|
|
||||||
inp = ""
|
inp = ""
|
||||||
multiline_input = False
|
multiline_input = False
|
||||||
|
|
||||||
|
@ -216,6 +211,11 @@ class Coder:
|
||||||
self.console.print("[bold red]^C again to quit")
|
self.console.print("[bold red]^C again to quit")
|
||||||
|
|
||||||
def run_loop(self):
|
def run_loop(self):
|
||||||
|
if self.pretty:
|
||||||
|
self.console.rule()
|
||||||
|
else:
|
||||||
|
print()
|
||||||
|
|
||||||
inp = self.get_input()
|
inp = self.get_input()
|
||||||
if inp is None:
|
if inp is None:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue