Starter code for the Duke project
Note: You may need to zoom out to properly view the side bar
The user can view all current tasks and their completion status
The user can add tasks of type Todo/Deadline/Event
The user can indicate that the given task is complete. Tasks have a default completion status of N. A completed status is indicated by Y.
The user can delete a given task based on task index
The user can find a task that matches the given search keyword
The user can safely exit the program
todo <task name>
- Add a Todo taskAdding a task of type todo
Example of usage | Expected Outcome |
---|---|
todo buy food |
Got it. I’ve added this task: [T][N] eat dinner |
deadline <deadline name> /by <date>
- Add a Deadline taskAdding a task of type deadline
Example of usage | Expected Outcome |
---|---|
deadline complete homework /by Monday |
Got it. I’ve added this task: [D][N] complete homework (by: Monday) |
event <event name> /at <date>
- Add an Event taskAdding a task of type event
Example of usage | Expected Outcome |
---|---|
event carnival /at Sunday |
Got it. I’ve added this task: [E][N] carnival (at: Sunday) |
list
- List all TasksDisplays all the current tasks in the task list
Example of usage | Expected Outcome |
---|---|
list |
Current task list: 1. [T][N] buy food 2. [D][N] complete homework (by: Monday) 3. [E][N] carnival (at: Sunday) |
done <index number>
- Mark given Task as DoneMark the task in the task list of the given index as done
Example of usage | Expected Outcome |
---|---|
done 2 |
I’ve marked this task as done: [D][Y] complete homework (by: Monday) |
delete <index number>
- Remove given Task from Task ListRemoves the task in the task list of the given index
Example of usage | Expected Outcome |
---|---|
delete 2 |
I’ve removed this task: [D][Y] complete homework (by: Monday) You have 2 task(s) left. |
find <keyword>
- Find any Tasks with a given KeywordSearches through the task list for any tasks that match the keyword
Example of usage | Expected Outcome |
---|---|
find buy |
Given keyword: buy Here are the matching tasks: 1. [T][N] buy food |
bye
- Exit the ProgramStops the Duke program
Example of usage | Expected Outcome |
---|---|
bye |
Bye. Hope to see you again! |