mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
feat: add suggest_shell_commands option to control shell command suggestions
This commit is contained in:
parent
f33850ceab
commit
b178fe85d8
2 changed files with 5 additions and 0 deletions
|
@ -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 = ""
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue