Able to create tasks to be added to a task list. Supported tasks are TODO, DEADLINE and EVENT tasks.
todo [name]
- Creates a TODO Task with a specified name.Example of usage:
todo buy groceries
Expected outcome:
Got it. I've added this task:
[T][✗] buy groceries
Now you have 1 tasks in the list.
deadline [name] [date]
- Creates a DEADLINE task with a specified name and date.Example of usage:
deadline groceries expire /by 11/11/2019 1800
date of the format: ‘/by dd/MM/yyyy HHmm’
Expected outcome:
Got it. I've added this task:
[D][✗] groceries expire (by 11 Nov 2019, 0600PM)
Now you have 2 tasks in the list.
event [name] [date]
- Creates a EVENT task with a specified name and date.Example of usage:
event cook groceries /at 11/11/2019 1800
date of the format: ‘/at dd/MM/yyyy HHmm’
Expected outcome:
Got it. I've added this task:
[E][✗] cook groceries (by 11 Nov 2019, 0600PM)
Now you have 3 tasks in the list.
Lists out all the current tasks in the task list.
list
- Lists out all the tasks in order of addition to the list.Example of usage:
list
Expected outcome:
`1. [T][✗] buy groceries
Marks a task in the task list as DONE.
done [integer]
- Marks the task in the task list with the specified index as done (index is 1-based).Example of usage:
done 1
Expected outcome:
Nice! I've marked this task as done:
[T][✓] buy groceries
Deletes a task from the task list (regardless of whether the task is done).
delete [integer]
- Deletes the task in the task list with the specified index(index is 1-based).Describe action and its outcome.
Example of usage:
delete 1
Expected outcome:
Noted. I've removed this task:
[T][✓] buy groceries
Now you have 2 tasks in the list.
Finds a task in the task list by searching for a keyword.
find [keyword]
- Finds a task in the task list by searching for a keyword.Example of usage:
find groceries
Expected outcome:
Here are the matching tasks in your list:
1.[D][✗] groceries expire (by 11 Nov 2019, 0600PM)
2.[E][✗] cook groceries (by 11 Nov 2019, 0600PM)
Undos the creation of the last task in the task list.
Undo
- Undos the creation of the last task in the task list.Example of usage:
undo
Expected outcome:
The last created task has been deleted:
[E][✗] cook groceries (by 11 Nov 2019, 0600PM)