From 579a8d3b4efff9ac443fc019ddf441a8d4dd184c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 16 Sep 2017 14:09:12 +0100 Subject: rearrange backend && cli frontend code --- src/frontend/cli/sisyphus-cli.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index f0b9c9e..1fb179c 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -10,22 +10,22 @@ PKGLIST = sys.argv[2:] if "__main__" == __name__: if "install" in sys.argv[1:]: sisyphus_pkg_install(PKGLIST) - elif "uninstall" in sys.argv[1:]: - sisyphus_pkg_uninstall(PKGLIST) - elif "force-uninstall" in sys.argv[1:]: - sisyphus_pkg_force_uninstall(PKGLIST) - elif "remove-orphans" in sys.argv[1:]: - sisyphus_pkg_remove_orphans() - elif "upgrade" in sys.argv[1:]: - sisyphus_pkg_system_upgrade() elif "auto-install" in sys.argv[1:]: sisyphus_pkg_auto_install(PKGLIST) + elif "uninstall" in sys.argv[1:]: + sisyphus_pkg_uninstall(PKGLIST) elif "auto-uninstall" in sys.argv[1:]: sisyphus_pkg_auto_uninstall(PKGLIST) + elif "force-uninstall" in sys.argv[1:]: + sisyphus_pkg_force_uninstall(PKGLIST) elif "auto-force-uninstall" in sys.argv[1:]: sisyphus_pkg_auto_force_uninstall(PKGLIST) + elif "remove-orphans" in sys.argv[1:]: + sisyphus_pkg_remove_orphans() elif "auto-remove-orphans" in sys.argv[1:]: sisyphus_pkg_auto_remove_orphans() + elif "upgrade" in sys.argv[1:]: + sisyphus_pkg_system_upgrade() elif "auto-upgrade" in sys.argv[1:]: sisyphus_pkg_auto_system_upgrade() elif "search" in sys.argv[1:]: -- cgit v1.2.3