-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redoing the menus to clean up the code #39
Comments
Seems like a useful update. The menu does need to be redone since the project has grown a lot since version 1.0 into something more maintainable for the future. |
Is it possible to create a separate branch for dev? |
@naveci I created a dev branch that should fulfill what you need. |
First version is up: Still need to fix a few minor things (press any key to continue) etc. Will merge with dev when i feel it's ready =) |
@naveci no rush, I'm in the midst of a code refactor and moving some of the modules around on Dev to clean up and improve usability atm. |
What is the feature that you are requesting?
I'm thinking of redoing the menus to clean up the code. By putting the contents in dictionaries, we could generate the menus more consistently. It would allow us to take a lot of the printing code out. I haven't counted lines, but it might be quite a lot.
Another advantage: adding a new function only requires an edit in one part of the document - the dictionary.
What's your take?
Additional information
An example is listed below. I do need to really think about this carefully as it won't be entirely as easy as the example code below.
Is your feature request related to a problem? Please describe.
N/A
Additional context
Current code example for the phishing menu:
We could shorten this to the following dict:
Then we need to write 1 function to generate a menu so that we could throw multiple of these dicts to that function. some semi code:
The text was updated successfully, but these errors were encountered: