-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from andela-kanyanwu/42__help_text_in_menu_com…
…mand_for_rating 42 help text in menu command for rating
- Loading branch information
Showing
4 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
```Shows help menu: help | ||
```SHOW HELP MENU: help | ||
|
||
Get the menu for today: menu | ||
GET THE MENU FOR TODAY: menu | ||
|
||
Get the menu for any day: menu [DAY_OF_WEEK] | ||
Example: menu tuesday | ||
GET THE MENU FOR ANY DAY: menu [DAY_OF_WEEK] | ||
EXAMPLE: menu tuesday | ||
|
||
Rate today's meal: rate [meal] [option] [rating] [comment] | ||
Example: rate breakfast 1 4 great meal I really enjoyed it | ||
NOTE: [rating] is between 1 and 5 while [comment] is optional | ||
RATE TODAY'S MEAL: rate [MEAL] [OPTION] [RATING] [COMMENT] | ||
EXAMPLE: rate breakfast 1 4 great meal I really enjoyed it | ||
|
||
NOTE: [RATING] is between 1 and 5 while [COMMENT] is optional | ||
For meal option, send the command `menu` to get menu options | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
Here is the menu.``` | ||
``` | ||
Here is the menu for ${day.title()} | ||
---------------------------------------------------------- | ||
% for mealtime in sorted(menu.keys()): | ||
${mealtime.title()} | ||
${mealtime.upper()} | ||
%for option in sorted(menu[mealtime].keys()): | ||
option ${option} : ${menu[mealtime][option]} | ||
OPTION ${option} : ${menu[mealtime][option]} | ||
%endfor | ||
|
||
% endfor | ||
|
||
RATE TODAY'S MEAL: rate [MEAL] [OPTION] [RATING] [COMMENT] | ||
EXAMPLE: rate breakfast 1 4 great meal I really enjoyed it | ||
|
||
NOTE: [RATING] is between 1 and 5 while [COMMENT] is optional | ||
Meal options are above | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters