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).
todo
deadline
event
list
mark
unmark
delete
find
stats
completed
uncompleted
todos
deadlines
events
bye
Java 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.todo
Adds 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.
deadline
Adds 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.
event
Adds 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.
list
Prints 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)
mark
Marks 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)
unmark
Marks 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)
delete
Deletes 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.
find
Finds 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)
stats
Displays 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.
completed
Displays 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)
uncompleted
Displays 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)
todos
Displays all todos in the list.
Format: todos
Expected output:
You have 1 todos on your list!
1.[X][T] read book
deadlines
Displays 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)
events
Displays 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)
bye
Displays exit message and disables user input.
Format: bye
Expected output:
Bye. Hope to see you again soon!
todo DESCRIPTION
deadline DESCRIPTION /by DUE DATE
event DESCRIPTION /from START DATE /to END DATE
list
mark TASK INDEX
unmark TASK INDEX
delete TASK INDEX
find KEYWORD
stats
completed
uncompleted
todos
deadlines
events
bye