mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
refactor: replace shlex.join with printable_shell_command
This commit is contained in:
parent
8c229e5072
commit
9bc61a656c
1 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ def get_pip_install(args):
|
|||
|
||||
def run_install(cmd):
|
||||
print()
|
||||
print("Installing:", shlex.join(cmd))
|
||||
print("Installing:", printable_shell_command(cmd))
|
||||
|
||||
try:
|
||||
output = []
|
||||
|
@ -316,7 +316,7 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
|||
if prompt:
|
||||
io.tool_error(prompt)
|
||||
|
||||
if not io.confirm_ask("Run pip install?", default="y", subject=shlex.join(cmd)):
|
||||
if not io.confirm_ask("Run pip install?", default="y", subject=printable_shell_command(cmd)):
|
||||
return
|
||||
|
||||
success, output = run_install(cmd)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue