fix: Update confirm_ask prompts to use consistent formatting

This commit is contained in:
Paul Gauthier 2024-08-21 08:08:31 -07:00 committed by Paul Gauthier (aider)
parent 9fb3a6f8e1
commit 3e5554c24f
3 changed files with 35 additions and 3 deletions

View file

@ -1661,7 +1661,7 @@ class Coder:
return True
if not Path(full_path).exists():
if not self.io.confirm_ask("Allow creation of new file?", subject=path):
if not self.io.confirm_ask("Create new file?", subject=path):
self.io.tool_error(f"Skipping edits to {path}")
return

View file

@ -46,7 +46,7 @@ class EditBlockCoder(Coder):
if edit[0] is None:
edit = edit[1]
# This is a shell command
if self.io.confirm_ask("Run this shell command?", subject=edit.strip()):
if self.io.confirm_ask("Run shell command?", subject=edit.strip()):
self.io.tool_output()
try:
# Add the command to input history