mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: Add explicit_yes_required param to confirm_ask
This commit is contained in:
parent
4ce08178fc
commit
97b47602e1
1 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ class InputOutput:
|
|||
hist = "\n" + content.strip() + "\n\n"
|
||||
self.append_chat_history(hist)
|
||||
|
||||
def confirm_ask(self, question, default="y", subject=None):
|
||||
def confirm_ask(self, question, default="y", subject=None, explicit_yes_required=False):
|
||||
self.num_user_asks += 1
|
||||
|
||||
if default == "y":
|
||||
|
@ -404,7 +404,7 @@ class InputOutput:
|
|||
)
|
||||
|
||||
if self.yes is True:
|
||||
res = "y"
|
||||
res = "n" if explicit_yes_required else "y"
|
||||
elif self.yes is False:
|
||||
res = "n"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue