mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
aider: Updated cmd_run
method in aider/commands.py
to use the io
version of Confirm.ask()
.
# Context: USER: in commands, switch the Confirm.ask() calls to use the io versions ASSISTANT: I will update the `cmd_add` method in the `aider/commands.py` file to use the `io` versions of `Confirm.ask()`. ^C KeyboardInterrupt USER: switch the Confirm.ask() calls to use the io versions ASSISTANT: I will update the `cmd_add` method in the `aider/commands.py` file to use the `io` versions of `Confirm.ask()`. ```python aider/commands.py <<<<<<< ORIGINAL if self.coder.repo is not None: create_file = self.io.confirm_ask( ( f"No files matched ^C KeyboardInterrupt USER: no, they already do. cmd_run ASSISTANT: I apologize for the confusion. I will update the `cmd_run` method in the `aider/commands.py` file to use the `io` version of `Confirm.ask()`. ```python aider/commands.py <<<<<<< ORIGINAL ok = Confirm.ask("Add the output to the chat?", default="y") ======= ok = self.io.confirm_ask("Add the output to the chat?", default="y") >>>>>>> UPDATED ```
This commit is contained in:
parent
71f6d09c78
commit
1391e9de9b
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ class Commands:
|
|||
|
||||
print(combined_output)
|
||||
|
||||
ok = Confirm.ask("Add the output to the chat?", default="y")
|
||||
ok = self.io.confirm_ask("Add the output to the chat?", default="y")
|
||||
if not ok:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue