Skip to content

Improved main menu handling - #30

Open
Enn3Developer wants to merge 1 commit into
C0MPL3XDEV:mainfrom
Enn3Developer:refactor/mainmenu
Open

Improved main menu handling#30
Enn3Developer wants to merge 1 commit into
C0MPL3XDEV:mainfrom
Enn3Developer:refactor/mainmenu

Conversation

@Enn3Developer

Copy link
Copy Markdown
Contributor

This pr changes how the main menu's handled.
Instead of hard coding in the mainmenu function every possible input given by the user and reroute them using a bunch of if-else statements, it reads from a list of Command which is composed of a name, a description and a function that will be called when the user requests it.
The other notable change is in the printing in the menu function which uses the same list of Command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants