mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: add install_upgrade function to install latest version of aider-chat
This commit is contained in:
parent
8de3c26fba
commit
fa74736e02
1 changed files with 12 additions and 0 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue