Starter code for the Duke project
Duke is for those who prefer to use a desktop app for managing contacts. More importantly, Duke is optimized for those who prefer to work with a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, AB3 can get your contact management tasks done faster than traditional GUI apps. Interested? Jump to the Section 2, “Quick Start” to get started. Enjoy!
Ensure you have Java 11 or above installed in your Computer.
Download the latest duke.jar
here.
Copy the file to the folder you want to use as the home folder for your Address Book.
Double-click the file to start the app. The GUI should appear in a few seconds.
Type the command in the command box and press Enter to execute it.
e.g. typing help
and pressing Enter will open the help window.
Some example commands you can try:
list
: lists all tasks
todo ATTEND JUDO
: adds a todo called ATTEND JUDO to the task list.
delete 3
: deletes the 3rd task shown in the current list
bye
: exits the app
Refer to Section 3, “Features” for details of each command.
Here is the list of available commands this program understands.
todo
event
deadline
done
list
delete
find
tag
Words in UPPER_CASE
are the parameters to be supplied by the user e.g. in todo TASK
, TASK is a parameter which can be used as todo REVISE HOMEWORK
.
The commands of the program should always be given as the first word in the entry for the program to understand the command, as well as adhering to the required amount of entries following the command.
todo
Adds a todo to the task list.
Example of usage:
todo ATTEND JUDO
Expected outcome:
I've added the task to the list!
event
Adds an event to the task list:
Example of usage:
event BOB'S PARTY /at TUESDAY EVENING
Expected outcome:
I've added the task to the list!
deadline
Adds a deadline to the task list:
Example of usage:
deadline SUBMIT MATH ASSIGNMENT /by 4.30PM
Expected outcome:
I've added the task to the list!
done
Marks a task according to its index number on the task list as done.
Example of usage:
done 2
Expected outcome:
Nice! I've marked this task as done:
[T][✔] ATTEND JUDO
list
Lists the current task list.
Example of usage:
list
Expected outcome:
Here are the tasks in your list
1. [T}[✔]ATTEND JUDO
delete
Deletes a task according to its index number on the task list.
Example of usage:
delete 2
Expected outcome:
Boi. I've went and deleted that taks.
[T][✔]ATTEND JUDO
find
Find a task in the task list
Example of usage:
find ATTEND
Expected outcome:
1. [T][✔] ATTEND JUDO
2. [T][✔] ATTEND BOB'S BIRTHDAY
tag
Tags a task according to its index number in the task list.
Example usage:
tag 1 IMPORTANT
Expected outcome:
Nice! I've tagged important to the task
1. [T][✔] ATTEND JUDO #IMPORTANT
Tags are also considered in find
.