mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
Removed the canned_input
method and commented out related code.
This commit is contained in:
parent
7dc406d0b4
commit
4ce6e279d3
1 changed files with 0 additions and 16 deletions
16
aider/io.py
16
aider/io.py
|
@ -69,19 +69,6 @@ class InputOutput:
|
||||||
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
current_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||||
self.append_chat_history(f"\n# aider chat started at {current_time}\n\n")
|
self.append_chat_history(f"\n# aider chat started at {current_time}\n\n")
|
||||||
|
|
||||||
def canned_input(self, show_prompt):
|
|
||||||
console = Console()
|
|
||||||
|
|
||||||
input_line = input()
|
|
||||||
|
|
||||||
console.print(show_prompt, end="", style="green")
|
|
||||||
for char in input_line:
|
|
||||||
console.print(char, end="", style="green")
|
|
||||||
time.sleep(random.uniform(0.01, 0.15))
|
|
||||||
console.print()
|
|
||||||
console.print()
|
|
||||||
return input_line
|
|
||||||
|
|
||||||
def get_input(self, fnames, commands):
|
def get_input(self, fnames, commands):
|
||||||
if self.pretty:
|
if self.pretty:
|
||||||
self.console.rule()
|
self.console.rule()
|
||||||
|
@ -104,9 +91,6 @@ class InputOutput:
|
||||||
show += "\n"
|
show += "\n"
|
||||||
show += "> "
|
show += "> "
|
||||||
|
|
||||||
# if not sys.stdin.isatty():
|
|
||||||
# return self.canned_input(show)
|
|
||||||
|
|
||||||
inp = ""
|
inp = ""
|
||||||
multiline_input = False
|
multiline_input = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue