Skip to content

Commit

Permalink
Merge pull request #58 from Aung-Phone-Naing/master
Browse files Browse the repository at this point in the history
Edit Help Feature to include editstep and editingredient
  • Loading branch information
LimHongYao authored Mar 30, 2023
2 parents 5039319 + d14caa8 commit 26f79b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
18 changes: 11 additions & 7 deletions src/main/java/seedu/duke/ui/StringLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ public interface StringLib {
+ "## Add ## \n"
+ "Description : Adds a new recipe to the list. \n"
+ "Format : \"add n/<insert recipe name> i/<insert ingredients with \", \" separation> "
+ "t/<insert cuisine>\"\n"
+ "Example use : \"add n/Hotpot i/Beef, Potatoes, Carrots t/Chinese\" \n \n"
+ "## Edit ## \n"
+ "Description : Edits a recipe in the list. \n"
+ "Format : \"edit n/<insert recipe name>\"\n"
+ "Example use : \"edit n/Hotpot\" \n \n"
+ "t/<insert cuisine> s/<insert number of steps in recipe>\"\n"
+ "Example use : \"add n/Hotpot i/Beef, Potatoes, Carrots t/Chinese s/4\" \n \n"
+ "## Edit Step ## \n"
+ "Description : Edits the steps of a recipe in the list. \n"
+ "Format : \"editstep <insert recipe index>\"\n"
+ "Example use : \"editstep 1\" \n \n"
+ "## Edit Ingredient ## \n"
+ "Description : Edits the ingredients of a recipe in the list. \n"
+ "Format : \"editingredient <insert recipe index>\"\n"
+ "Example use : \"editingredient 1\" \n \n"
+ "## View ## \n"
+ "Description : Displays the details of a particular recipe from the recipe list. "
+ "Requires either the recipe name or index as the input. \n"
Expand Down Expand Up @@ -122,7 +126,7 @@ public interface StringLib {
String STEP_EDIT_SUCCESS = "Step has been edited:";
String STEP_VIEW_QUIT_KEYWORD = "quit";
String RECIPE_NO_STEPS = "This recipe has no steps!";
String STEPBYSTEP_PROMPT = "Do you want to view step-by-step?\nType yes if so";
String STEPBYSTEP_PROMPT = "Do you want to view step-by-step?\nType \"yes\" if so";
String STEPBYSTEP_EARLY_TERMINATION_PROMPT = "To exit recipe view, type \"quit\"\nElse, enter any key to continue";
String ENTER_INGREDIENT_DESCRIPTION = "Enter the description of the ingredient:";
String INGREDIENT_EDIT_SUCCESS = "Ingredient has been edited:";
Expand Down
8 changes: 4 additions & 4 deletions text-ui-test/EXPECTED.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Here are 3 ingredients in the list:
__________________________________________________________
There are 1 steps in the list
Do you want to view step-by-step?
Type yes if so
Type "yes" if so
To exit recipe view, type "quit"
Else, enter any key to continue
1. add spaghetti
Expand Down Expand Up @@ -187,7 +187,7 @@ Here are 3 ingredients in the list:
__________________________________________________________
There are 1 steps in the list
Do you want to view step-by-step?
Type yes if so
Type "yes" if so
There are 1 steps in the list
1. chop beef
__________________________________________________________
Expand All @@ -211,7 +211,7 @@ Here are 3 ingredients in the list:
__________________________________________________________
There are 1 steps in the list
Do you want to view step-by-step?
Type yes if so
Type "yes" if so
There are 1 steps in the list
1. go to haidilao
__________________________________________________________
Expand Down Expand Up @@ -253,7 +253,7 @@ Here are 3 ingredients in the list:
__________________________________________________________
There are 4 steps in the list
Do you want to view step-by-step?
Type yes if so
Type "yes" if so
To exit recipe view, type "quit"
Else, enter any key to continue
1. brew tea
Expand Down

0 comments on commit 26f79b1

Please sign in to comment.