feat: add suggest_shell_commands option to control shell command suggestions

This commit is contained in:
Paul Gauthier (aider) 2024-08-27 13:31:43 -07:00
parent f33850ceab
commit b178fe85d8
2 changed files with 5 additions and 0 deletions

View file

@ -255,6 +255,7 @@ class Coder:
map_refresh="auto",
cache_prompts=False,
num_cache_warming_pings=0,
suggest_shell_commands=True,
):
self.commit_before_message = []
self.aider_commit_hashes = set()
@ -1865,6 +1866,9 @@ class Coder:
return
def run_shell_commands(self):
if not self.suggest_shell_commands:
return ""
done = set()
group = ConfirmGroup(set(self.shell_commands))
accumulated_output = ""

View file

@ -552,6 +552,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
cache_prompts=args.cache_prompts,
map_mul_no_files=args.map_multiplier_no_files,
num_cache_warming_pings=args.cache_keepalive_pings,
suggest_shell_commands=args.suggest_shell_commands,
)
except ValueError as err:
io.tool_error(str(err))