summaryrefslogtreecommitdiff
path: root/src/frontend/cli/sisyphus-cli.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-30 14:41:20 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-30 14:41:20 +0000
commit515171c670ed6ae373002196b8cd3dd1154cd5cc (patch)
tree24c23352ea23f85f95cb065d200621949fd986c7 /src/frontend/cli/sisyphus-cli.py
parent1e64e01b293ecd775af05816cc3d299ebadb5960 (diff)
ui : move package operations into the backend
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index e69a547..5c87698 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -97,12 +97,12 @@ def search(package: List[str] = typer.Argument(...),
cat, pn = package[0].split('/')
else:
cat, pn = '', package[0]
- sisyphus.searchbinary.start(filter.value, cat, pn, desc, quiet)
+ sisyphus.search.start(filter.value, cat, pn, desc, quiet)
else:
if not package:
raise typer.Exit('No search term provided, try: sisyphus search --help')
else:
- sisyphus.searchebuild.start(package)
+ sisyphus.ebuildsearch.start(package)
@app.command("install")
def install(pkgname: List[str], ebuild: bool = typer.Option(False, "--ebuild", "-e")):
@@ -124,9 +124,9 @@ def install(pkgname: List[str], ebuild: bool = typer.Option(False, "--ebuild", "
You can use the --ebuild option even if you don't want to install any ebuild(source) packages; It will fall back to binary packages only.
"""
if not ebuild:
- sisyphus.installbinary.start(pkgname)
+ sisyphus.install.start(pkgname)
else:
- sisyphus.installebuild.start(pkgname)
+ sisyphus.ebuildinstall.start(pkgname)
@app.command("uninstall")
def uninstall(pkgname: List[str], force: bool = typer.Option(False, "--force", "-f")):
@@ -163,7 +163,7 @@ def uninstall(pkgname: List[str], force: bool = typer.Option(False, "--force", "
if not force:
sisyphus.uninstall.start(pkgname)
else:
- sisyphus.uninstallforce.start(pkgname)
+ sisyphus.forceuninstall.start(pkgname)
@app.command("autoremove")
def autoremove():
@@ -203,9 +203,9 @@ def upgrade(ebuild: bool = typer.Option(False, "--ebuild", "-e")):
You can use the --ebuild option even if you don't have any ebuild(source) packages installed; It will fall back to binary packages only.
"""
if not ebuild:
- sisyphus.upgradebinary.start()
+ sisyphus.upgrade.start()
else:
- sisyphus.upgradeebuild.start()
+ sisyphus.ebuildupgrade.start()
@app.command("spmsync")
def spmsync():