Duke is an interactive chat-bot that helps to organize your tasks through a to-do list.
Prerequisites:
JAVA_HOME
is set to the correct JDK 11 locationRunning Duke:
Duke.jar
Duke.jar
todo
- Add new todoAdd a new todo task with description.
Example of usage:
todo Walk the dog
Expected outcome:
Yes! I have successfully added:
[T][✗] Walk the dog
deadline
- Add new deadlineAdd a new deadline task with description and time.
Example of usage:
deadline Assignment /by 2020-10-10 1800
Expected outcome:
Yes! I have successfully added:
[D][✗] Assignment (by: 10 Oct 2020, 06:00 PM)
event
- Add new eventAdd a new event task with description and time.
Example of usage:
event Meeting /at 10pm
Expected outcome:
Yes! I have successfully added:
[E][✗] Meeting (at: 10pm)
delete
- Delete a taskDelete a task by specifing its number in the task list.
Example of usage:
delete 3
Expected outcome:
Alright! I’ve removed this task:
[E][✓] Google Career Talk (at: U-Town)
list
- List all tasksDisplay all tasks currently in the list.
Example of usage:
list
Expected outcome:
Here are the tasks in your list:
1. [D][✓] Send Email (by: 13 Sept 2020, 06:00 PM)
2. [E][✗] Software Engineering class (at: 3pm)
3. [D][✗] Submission of Essay (by: 6pm on Thursday)
4. [D][✗] Assignment (by: 10 Oct 2020, 06:00 PM)
You have 4 task(s) in the list
clear
- Clear all tasksDelete all tasks in the list.
Example of usage:
clear
Expected outcome:
The list of tasks has successfully been cleared.
find
- Find a task by keywordFind all tasks matching the keyword either fully or partially.
Example of usage:
find Essay
Expected outcome:
I have found the matching tasks in your list:
[D][✗] Submission of Essay (by: 6pm on Thursday)
done
- Completes a taskMark a task as done by specifing its number in the task list.
Example of usage:
done 4
Expected outcome:
Good job! You completed:
[D][✓] Assignment (by: 10 Oct 2020, 06:00 PM)
undo
- Undo the previous commandExample of usage:
undo
Expected outcome:
The previous command: “done 3” has been undone!
help
- Displays help guide for commandsExamples of usage:
Display help for all commands
help
Display help for a specific command
help deadline
Expected outcome:
deadline: Adds a deadline task with time.
Fields: [description] /by [time]
Example: deadline Assignment /by 2020-10-10 1800