Skip to content

Commit

Permalink
Merge branch-C-FriendlierSyntax into master
Browse files Browse the repository at this point in the history
  • Loading branch information
icantshootfloorballs committed Sep 12, 2024
2 parents 17ac8f0 + c607c8b commit 3d1bf04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/devon/Devon.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class Devon {
* Enum to represent the various commands the user can input.
*/
private enum Command {
BYE, LIST, MARK, UNMARK, TODO, DEADLINE, EVENT, DELETE, FIND, UNKNOWN;
BYE, LIST, MARK, UNMARK, TODO, T, DEADLINE, D, EVENT, E, DELETE, FIND, UNKNOWN;

/**
* Converts a string command to the corresponding enum value.
Expand Down Expand Up @@ -88,10 +88,13 @@ protected String getResponse(String input) {
case UNMARK:
return unmarkAction(input);
case TODO:
case T:
return todoAction(input);
case DEADLINE:
case D:
return deadlineAction(input);
case EVENT:
case E:
return eventAction(input);
case DELETE:
return deleteAction(input);
Expand Down

0 comments on commit 3d1bf04

Please sign in to comment.