From ecf80a799d870ff30a5040236d7caeff668ff8aa Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 2 Sep 2024 07:06:20 -0700 Subject: [PATCH] feat: improve version upgrade messaging and display --- aider/utils.py | 3 ++- aider/versioncheck.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/aider/utils.py b/aider/utils.py index 34bd73d21..11152e569 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -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": 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 if not io.confirm_ask("Run pip install?", default="y", subject=printable_shell_command(cmd)): diff --git a/aider/versioncheck.py b/aider/versioncheck.py index 5f500bf38..6ec42bce4 100644 --- a/aider/versioncheck.py +++ b/aider/versioncheck.py @@ -34,7 +34,7 @@ def install_upgrade(io, latest_version=None): if latest_version: new_ver_text = f"Newer aider version v{latest_version} is available." 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") if docker_image: