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:
Paul Gauthier 2023-05-19 10:18:49 -07:00
parent 71f6d09c78
commit 1391e9de9b

View file

@ -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