Improved menu handling

This commit is contained in:
Sven Heidemann 2021-11-23 12:27:01 +01:00
parent 39cdd989f0
commit c2fc611f94
2 changed files with 19 additions and 5 deletions

View File

@ -10,10 +10,7 @@ class MenuServiceABC(ABC):
def run(self): pass
@abstractmethod
def select_os(self) -> str: pass
def select_os(self) -> bool: pass
@abstractmethod
def main_menu(self) -> str: pass
@abstractmethod
def select_collection(self) -> str: pass
def main_menu(self) -> bool: pass

View File

@ -0,0 +1,17 @@
from enum import Enum
class MainMenuEnum(Enum):
install_collection = 'Install collection'
uninstall_collection = 'Uninstall collection'
add_collection = 'Add collection'
remove_collection = 'Remove collection'
install_application = 'Install application'
uninstall_application = 'Uninstall application'
add_application = 'Add application'
remove_application = 'Remove application'
back = 'Back'
exit = 'Exit'