list: Lists all tasks in the task list.
todo task: Adds todo task to the task list.deadline task /by date: Adds deadline task to the task list.event task /at date: Adds event task to the task list.done 1: Mark the first (1) task in the task list as done.
delete 1: Delete the first (1) task from the task list.
undo: Recover the previous task list.
exit or bye: To terminate the program.
list
Expected outcome: All tasks in the task list are listed.
Duke: 1.[T][ ] read book 2.[D][ ] read (by: 2021-09-01) 3.[E][ ] movie (at: 2021-02-9) 4.[T][ ] read 5.[E][ ] movie (at: 2021-09-01)
todo task
Expected outcome: A todo task named ‘task’ is added to the task list.
Duke: [T][ ] task
Now you have 6 tasks in the list.
deadline task /by 2021-09-26
Expected outcome: A deadline task named ‘task’ is added to the task list.
Duke: [D][ ] task (by: 2021-09-26)
Now you have 7 tasks in the list.
event task /at 2021-09-26
Expected outcome: An event task named ‘task’ is added to the task list.
Duke: [E][ ] task (at: 2021-09-26)
Now you have 8 tasks in the list.
done 1
Expected outcome: Mark the first task as done.
Duke: Nice! I've marked this task as done: [T][✓] read book
delete 1
Expected outcome: The first task is deleted.
Duke: Noted. I've removed this task:
[T][✓] read book
Now you have 7 tasks in the list.
undo
Expected outcome: The previous task list is recovered.
Duke: I have mark this task as undone: [T][ ] read book
exit or bye
Expected outcome: The duke program is terminated.