mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-06 20:54:59 +00:00
feat: add install_from_main_branch() function
This commit is contained in:
parent
40be2d2100
commit
28ffece647
1 changed files with 11 additions and 0 deletions
|
@ -9,6 +9,17 @@ import aider
|
||||||
from aider import utils
|
from aider import utils
|
||||||
from aider.dump import dump # noqa: F401
|
from aider.dump import dump # noqa: F401
|
||||||
|
|
||||||
|
def install_from_main_branch(io):
|
||||||
|
"""
|
||||||
|
Install the latest version of aider from the main branch of the GitHub repository.
|
||||||
|
"""
|
||||||
|
return utils.check_pip_install_extra(
|
||||||
|
io,
|
||||||
|
"aider",
|
||||||
|
"Installing the latest version from the main branch...",
|
||||||
|
["--upgrade", "git+https://github.com/paul-gauthier/aider.git"]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def check_version(io, just_check=False, verbose=False):
|
def check_version(io, just_check=False, verbose=False):
|
||||||
fname = Path.home() / ".aider" / "caches" / "versioncheck"
|
fname = Path.home() / ".aider" / "caches" / "versioncheck"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue