feat: add install_upgrade function to install latest version of aider-chat

This commit is contained in:
Paul Gauthier (aider) 2024-08-27 08:46:05 -07:00
parent 8de3c26fba
commit fa74736e02

View file

@ -22,6 +22,18 @@ def install_from_main_branch(io):
)
def install_upgrade(io):
"""
Install the latest version of aider from PyPI.
"""
return utils.check_pip_install_extra(
io,
None,
"Install the latest version of aider from PyPI?",
["--upgrade", "aider-chat"],
)
def check_version(io, just_check=False, verbose=False):
fname = Path.home() / ".aider" / "caches" / "versioncheck"
if not just_check and fname.exists():