mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +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):
|
def run_install(cmd):
|
||||||
print()
|
print()
|
||||||
print("Installing:", shlex.join(cmd))
|
print("Installing:", printable_shell_command(cmd))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
output = []
|
output = []
|
||||||
|
@ -316,7 +316,7 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
||||||
if prompt:
|
if prompt:
|
||||||
io.tool_error(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
|
return
|
||||||
|
|
||||||
success, output = run_install(cmd)
|
success, output = run_install(cmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue