mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-10 22:55:00 +00:00
![]() # 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 ``` |
||
---|---|---|
.. | ||
__init__.py | ||
coder.py | ||
commands.py | ||
dump.py | ||
getinput.py | ||
main.py | ||
prompts.py | ||
utils.py |