The app only does one thing and that is let the user enter a series of meals or show all meals. Instead, it should listen for 'commands' and start a short process after.
Intended commands
Create meal list mealplan, mp
List all meals listall, la
Add meal addmeal, am
Edit meal editmeal -name 'omelette', em -n 'omelette'
More to be added in future
Discover how to refactor the app to do these.
Will need a universal command to break out of any current process cancel and done are not the same.
Will need a way of also accepting user arguments
The app only does one thing and that is let the user enter a series of meals or show all meals. Instead, it should listen for 'commands' and start a short process after.
Intended commands
mealplan
,mp
listall
,la
addmeal
,am
editmeal -name 'omelette'
,em -n 'omelette'
More to be added in future
Discover how to refactor the app to do these. Will need a universal command to break out of any current process
cancel
anddone
are not the same. Will need a way of also accepting user arguments