mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14: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",
|
map_refresh="auto",
|
||||||
cache_prompts=False,
|
cache_prompts=False,
|
||||||
num_cache_warming_pings=0,
|
num_cache_warming_pings=0,
|
||||||
|
suggest_shell_commands=True,
|
||||||
):
|
):
|
||||||
self.commit_before_message = []
|
self.commit_before_message = []
|
||||||
self.aider_commit_hashes = set()
|
self.aider_commit_hashes = set()
|
||||||
|
@ -1865,6 +1866,9 @@ class Coder:
|
||||||
return
|
return
|
||||||
|
|
||||||
def run_shell_commands(self):
|
def run_shell_commands(self):
|
||||||
|
if not self.suggest_shell_commands:
|
||||||
|
return ""
|
||||||
|
|
||||||
done = set()
|
done = set()
|
||||||
group = ConfirmGroup(set(self.shell_commands))
|
group = ConfirmGroup(set(self.shell_commands))
|
||||||
accumulated_output = ""
|
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,
|
cache_prompts=args.cache_prompts,
|
||||||
map_mul_no_files=args.map_multiplier_no_files,
|
map_mul_no_files=args.map_multiplier_no_files,
|
||||||
num_cache_warming_pings=args.cache_keepalive_pings,
|
num_cache_warming_pings=args.cache_keepalive_pings,
|
||||||
|
suggest_shell_commands=args.suggest_shell_commands,
|
||||||
)
|
)
|
||||||
except ValueError as err:
|
except ValueError as err:
|
||||||
io.tool_error(str(err))
|
io.tool_error(str(err))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue