Duke is a command line based tool for keeping track of your tasks. Tasks are saved whenever you need to change your tasks.
Add tasks you have yet to complete.
The types of tasks are todo, event and deadline tasks. Since event and deadline tasks are time sensitive, you can add the relevant date when creating the task.
List the tasks you have in your current list of tasks.
Duke let’s you enter tasks that you have entered previously based on the keyword in your search.
When you finish a task, you can indicate that you have completed it.
Delete any of the tasks in your list.
Duke allows you to undo your most recent action. This includes all actions which change your list of tasks.
todo <description of task>
- Adding a todo taskAdd a todo task with a description to your task list. Duke will give feedback on the task, as well as the number of tasks in your list currently.
Example of usage:
todo 5km run
Expected outcome:
Got it. I've added this task:
[T][✗] 5km run
Now you have 1 tasks in your list.
event <description of task> /at <dd-mm-yyyy hh:mm>
- Adding an event taskAdd an event task with a description and date (in the specified format) to your task list. Duke will give feedback on the task, as well as the number of tasks in your list currently.
Example of usage:
event project meeting /at 10-10-2019 18:00
Expected outcome:
Got it. I've added this task:
[E][✗] project meeting (at: 10-10-2019 18:00)
Now you have 2 tasks in your list.
deadline <description of task> /by <dd-mm-yyyy hh:mm>
- Adding a deadline taskAdd a deadline task with a description and date (in the specified format) to your task list. Duke will give feedback on the task, as well as the number of tasks in your list currently.
Example of usage:
deadline project meeting /by 11-10-2019 18:00
Expected outcome:
Got it. I've added this task:
[D][✗] programming assignment (by: 11-10-2019 18:00)
Now you have 3 tasks in your list.
list
- Get the list of tasks you haveList out all the tasks you have. Todo tasks are given as [T]
, event tasks as [E]
and deadline as [D]
.
Incomplete tasks are displayed with a [✗]
, while completed tasks are displayed as [✓]
.
Example of usage:
list
Expected outcome:
Here are the tasks in your list:
1.[T][✗] 5km run
2.[E][✗] project meeting (at: 10-10-2019 18:00)
3.[D][✗] programming assignment (by: 11-10-2019 18:00)
find <search keyword>
- Search for the taskFinds matching tasks from your list, if any, based on your search keyword.
Example of usage:
find programming
Expected outcome:
Here are the matching tasks in your list:
3.[D][✗] programming assignment (by: 11-10-2019 18:00)
done <task id>
- Mark a task as completedMark a given task as completed. In order to mark the right task, remember to use list
first to check the id
of the task you completed.
Example of usage:
done 1
Expected outcome:
Here are the tasks in your list:
1.[T][✓] 5km run
2.[E][✗] project meeting (at: 10-10-2019 18:00)
3.[D][✗] programming assignment (by: 11-10-2019 18:00)
delete <task id>
- Delete a taskDelete the given task from your list. In order to mark the right task, remember to use list
first to check the id
of the task you completed.
Example of usage:
done 1
Expected outcome:
Noted. I've removed this task:
[T][✓] 5km run
Now you have 2 tasks in the list.
undo
- Undo the most recent actionYou can undo the most recent addition, deletion of tasks as well as marking of said tasks as completed. Remember not to press undo consecutively!
Example of usage:
undo
Expected outcome:
Got it, last action was undone.
Please do not press undo consecutively!
Here are the tasks in your list:
1.[T][✓] 5km run
2.[E][✗] project meeting (at: 10-10-2019 18:00)
3.[D][✗] programming assignment (by: 11-10-2019 18:00)