mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Add support for 'y' and 'n' responses in the 'cmd_run' method
This commit is contained in:
parent
926f9cc39a
commit
49f332db3f
1 changed files with 3 additions and 3 deletions
|
@ -620,14 +620,14 @@ class Commands:
|
|||
add = result.returncode != 0
|
||||
else:
|
||||
response = self.io.prompt(
|
||||
"Add the output to the chat? (yes/no/instructions): ",
|
||||
"Add the output to the chat? (yes/y/no/n/instructions): ",
|
||||
default="no"
|
||||
).lower().strip()
|
||||
|
||||
if response == "yes":
|
||||
if response in ["yes", "y"]:
|
||||
add = True
|
||||
instructions = None
|
||||
elif response == "no":
|
||||
elif response in ["no", "n"]:
|
||||
add = False
|
||||
instructions = None
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue