aider/aider
Paul Gauthier 34c2369380 aider: Created a new function confirm_ask in the Coder class and replaced all calls to Confirm.ask with the new function.
# Context:
USER: make a new func self.confirm_ask which just calls Confirm.ask and returns the result. change all calls to use it.
ASSISTANT: I will create a new function `confirm_ask` in the `Coder` class and replace all calls to `Confirm.ask` with the new function.

```python
aider/coder.py
<<<<<<< ORIGINAL
class Coder:
    abs_fnames = set()
=======
class Coder:
    abs_fnames = set()

    def confirm_ask(self, question, default="y"):
        return Confirm.ask(question, console=self.console, default=default)
>>>>>>> UPDATED

aider/coder.py
<<<<<<< ORIGINAL
            if Confirm.ask("[bright_black]Add them?", console=self.console, default="y"):
=======
            if self.confirm_ask("[bright_black]Add them?"):
>>>>>>> UPDATED

aider/coder.py
<<<<<<< ORIGINAL
            if Confirm.ask("[bright_black]Add {path} to git?", console=self.console, default="y"):
=======
            if self.confirm_ask("[bright_black]Add {path} to git?"):
>>>>>>> UPDATED

aider/coder.py
<<<<<<< ORIGINAL
        ok = Confirm.ask("[bright_black]Add these files?", console=self.console, default="y")
=======
        ok = self.confirm_ask("[bright_black]Add these files?")
>>>>>>> UPDATED
```
2023-05-11 17:43:28 -07:00
..
__init__.py initial 2023-05-09 11:00:32 -07:00
coder.py aider: Created a new function confirm_ask in the Coder class and replaced all calls to Confirm.ask with the new function. 2023-05-11 17:43:28 -07:00
commands.py noop 2023-05-11 17:22:58 -07:00
dump.py moved into subdir 2023-05-09 10:52:18 -07:00
getinput.py fix 2023-05-10 21:20:04 -07:00
main.py aider: Added a new argument --yes to always say yes to every confirmation and passed it to the Coder class. 2023-05-11 17:41:23 -07:00
prompts.py sniff when GPT mentions files that are not in the chat, prompt the user to add them 2023-05-10 22:05:00 -07:00
utils.py fix tests and bug 2023-05-11 17:15:19 -07:00