mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
fix: Require explicit yes for running shell commands
This commit is contained in:
parent
97b47602e1
commit
3c249c6b3c
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class EditBlockCoder(Coder):
|
||||||
1 for cmd in commands if cmd.strip() and not cmd.strip().startswith("#")
|
1 for cmd in commands if cmd.strip() and not cmd.strip().startswith("#")
|
||||||
)
|
)
|
||||||
prompt = "Run shell command?" if command_count == 1 else "Run shell commands?"
|
prompt = "Run shell command?" if command_count == 1 else "Run shell commands?"
|
||||||
if not self.io.confirm_ask(prompt, subject="\n".join(commands)):
|
if not self.io.confirm_ask(prompt, subject="\n".join(commands), explicit_yes_required=True):
|
||||||
return
|
return
|
||||||
|
|
||||||
for command in commands:
|
for command in commands:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue