From 1391e9de9bb41eb497f8eaae5a5a9123a0c15f1a Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 19 May 2023 10:18:49 -0700 Subject: [PATCH] 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 ``` --- aider/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/commands.py b/aider/commands.py index dceabb826..a5b268482 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -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