Duke is a desktop app for managing tasks, optimized for use via a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI).
tododeadlineeventlistmarkunmarkdeletefindstatscompleteduncompletedtodosdeadlineseventsbyeJava 11 or above installed in your computer.cd into the folder you put the jar file in, and use the java -jar duke.jar commmand to run the application.todoAdds a todo to the list.
Format: todo DESCRIPTION
Example: todo read book
Expected output:
Got it. I've added this task:
[ ][T] read book
Now you have 1 tasks in the list.
deadlineAdds a deadline to the list
Format: deadline DESCRIPTION /by DUE DATE
Example: deadline return book /by 2023-09-22
Expected output:
Got it. I've added this task:
[ ][D] return book /by 2023-09-22
Now you have 2 tasks in the list.
eventAdds an event to the list.
Format: event DESCRIPTION /from START DATE /to END DATE
Example” event holiday /from 2023-12-20 /to 2023-12-25
Expected output:
Got it. I've added this task:
[ ][E] return holidy /from 2023-12-20 /to 2023-12-25
Now you have 3 tasks in the list.
listPrints a numbered list of tasks.
Format: print
X indicates tasks that have been marked.T, D, and E tags indicate todos, deadlines and events respectively.Expected output:
Here are the tasks in your list:
1.[ ][T] read book
2.[ ][D] return book (by: 29/09/2023)
3.[ ][E] holiday (from: 20/12/2023 to: 25/12/2023)
markMarks a task as done.
Format: mark TASK INDEX
TASK INDEX.Example: mark 2
Expected output:
Nice! I've marked this task as done:
[X][D] return book (by: 29/09/2023)
unmarkMarks a task as not done yet.
Format: unmark TASK INDEX
TASK INDEX.Example: unmark 2
Expected output:
OK, I've marked this task as not done yet:
[ ][D] return book (by: 29/09/2023)
deleteDeletes a task from the list.
Format: delete TASK INDEX
TASK INDEX.Example: delete 1
Expected output:
Noted. I've removed this task.
[ ][T] read book
Now you have 2 tasks in the list.
findFinds tasks containing a key word or phrase.
Format: find KEYWORD
KEYWORD.book will not match Book.Example: find book
Expected output:
Here are the matching tasks in your list:
1.[X][D] return book (by 29/09/2023)
statsDisplays the number of each type of task, and the percentage of tasks completed.
Format: stats
Expected output:
Your tasklist consists of:
- 1 todos
- 2 deadlines
- 3 events
You are 66% done with all tasks.
completedDisplays tasks that have been marked as done.
Format: completed
Expected output:
Congratulations! You have completed 2 of 3 tasks!
1.[X][T] read book
2.[X][E] holiday (from: 20/12/2023 to: 25/12/2023)
uncompletedDisplays tasks that have not been marked as done.
Format: uncompleted
Expected output:
You still have 1 of 3 tasks uncompleted. Jia you!
1.[ ][D] return book (by: 22/09/2023)
todosDisplays all todos in the list.
Format: todos
Expected output:
You have 1 todos on your list!
1.[X][T] read book
deadlinesDisplays all deadlines in the list.
Format: deadlines
Expected output:
You have 2 deadlines on your list!
1.[ ][D] return book (by: 22/09/2023)
2.[X][D] submit report (by; 01/10/2023)
eventsDisplays all events in the list.
Format: events
Expected output:
You have 2 events on your list!
1.[X][E] holiday (from: 20/12/2023 to: 25/12/2023)
2.[ ][E] exams (from: 30/11/2023 to: 05/12/2023)
byeDisplays exit message and disables user input.
Format: bye
Expected output:
Bye. Hope to see you again soon!
todo DESCRIPTIONdeadline DESCRIPTION /by DUE DATEevent DESCRIPTION /from START DATE /to END DATElistmark TASK INDEXunmark TASK INDEXdelete TASK INDEXfind KEYWORDstatscompleteduncompletedtodosdeadlineseventsbye