Menu system flow amended, added shebang, linting/formatting #58
No reviewers
Labels
No Label
bug
compatibility
documentation
duplicate
enhancement
future release
help wanted
invalid
non-code
question
refactor
testing
this release
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cmccabe/linkulator2#58
Loading…
Reference in New Issue
No description provided.
Delete Branch "menu-reflow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #57
Menus are set up as functions that do the following in a
while
loop:There are now three levels of menus:
menu_view_categories()
menu_view_category_details()
menu_view_thread_details()
All functions* that are called from menus, including the lower-level menus, return to the caller when complete. When returning to a caller menu, the
while
loop continues - process/print data, prompt for input, handle input.This should result in a uniform experience from menus and called functions.
One drawback to this approach is that it's not possible (yet?) to jump from a lower level menu to the top level menu.
Please check it out and let me know what you think!
A couple of other items:
*
graceful_exit()
can be called from the menus, which does not return but instead exits.