mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
feat: improve version upgrade messaging and display
This commit is contained in:
parent
f8e2780d40
commit
ecf80a799d
2 changed files with 3 additions and 2 deletions
|
@ -317,7 +317,8 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd, self_update=Fal
|
||||||
|
|
||||||
if self_update and platform.system() == "Windows":
|
if self_update and platform.system() == "Windows":
|
||||||
io.tool_output("Run this command to update:")
|
io.tool_output("Run this command to update:")
|
||||||
io.tool_output(printable_shell_command(cmd))
|
print()
|
||||||
|
print(printable_shell_command(cmd)) # plain print so it doesn't line-wrap
|
||||||
return
|
return
|
||||||
|
|
||||||
if not io.confirm_ask("Run pip install?", default="y", subject=printable_shell_command(cmd)):
|
if not io.confirm_ask("Run pip install?", default="y", subject=printable_shell_command(cmd)):
|
||||||
|
|
|
@ -34,7 +34,7 @@ def install_upgrade(io, latest_version=None):
|
||||||
if latest_version:
|
if latest_version:
|
||||||
new_ver_text = f"Newer aider version v{latest_version} is available."
|
new_ver_text = f"Newer aider version v{latest_version} is available."
|
||||||
else:
|
else:
|
||||||
new_ver_text = "Install latest version of aider from PyPI?"
|
new_ver_text = "Install latest version of aider?"
|
||||||
|
|
||||||
docker_image = os.environ.get("AIDER_DOCKER_IMAGE")
|
docker_image = os.environ.get("AIDER_DOCKER_IMAGE")
|
||||||
if docker_image:
|
if docker_image:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue