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).
-
Ensure you have Java
11
or above installed in your Computer. -
Download the latest
duke.jar
from here. -
Copy the file to the folder you want to use as the home folder.
-
Double-click the file to start the app. The GUI similar to the below should appear in a few seconds.
-
Type the command in the command box and press Enter / Return on your keyboard to execute it. Alternatively, you may press the Enter button on the GUI. e.g. typing
todo Defeat Gengar
and pressing Enter will add a task namedDefeat Gengar
to your task list.Some example commands you can try:
-
list
: Lists all tasks. -
todo
Defeat Gengar
: Adds a task namedDefeat Gengar
to your task list. -
delete
3
: Deletes the 3rd task shown in the current list. -
bye
: Exits the app.
-
-
Refer to the Features below for details of each command.
ℹ️ Notes about the command format:
- Words in
UPPER_CASE
are the parameters to be supplied by the user.
e.g. intodo NAME
,NAME
is a parameter which can be used astodo Defeat Gengar
.
Adds a task to the address book.
Format:
- Adding a todo:
todo NAME
- Adding an event:
event NAME /at DATE
- Adding a deadline:
deadline NAME /by DATE
Examples:
todo Defeat Gengar
event Attend Sobble's birthday /at 2020-12-12
deadline Save Mudkip /by 2020-09-09
Shows a list of all tasks in the task list.
Format: list
Find tasks where names and / or dates contain any of the given keywords.
Format: find KEYWORD
- The search is case-sensitive. e.g
Save
will not matchsave
- A space-separated search is considered as one keyword e.g.
Save Mudkip
would matchSave Mudkip
only, and notSave Treecko
- Both the name and date can be searched.
- Partial words can be matched e.g.
Mud
will matchMudkip
Examples:
find Sav
returnsSave Mudkip /by 2020-09-09
andSave Treecko
find 2020
returnsSave Mudkip /by 2020-09-09
andAttend Sobble's birthday /at 2020-12-12
Sorts the task list by task name.
Format: sort SORT_ORDER
- Sorts the entire task list by task name using the specified
SORT_ORDER
. SORT_ORDER
must be one ofasc
ordesc
.asc
sorts the task list in ascending order, whiledesc
sorts the task list in descending order.
Examples:
sort asc
sorts the task list in ascending order.
Marks the specified task from the task list as done.
Format: done INDEX
- Marks the task at the specified
INDEX
as done. - The index refers to the index number shown in the entire task list.
- The index must be a positive integer not more than the size of the task list e.g. 1, 2, 3, ...
Examples:
done 2
marks the 2nd task in the task list as done.
Deletes the specified task from the task list.
Format: delete INDEX
- Deletes the task at the specified
INDEX
. - The index refers to the index number shown in the displayed task list.
- The index must be a positive integer not more than the size of the task list e.g. 1, 2, 3, ...
Examples:
delete 2
deletes the 2nd task in the task list.
Exits the program.
Format: bye
Task list data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
Action | Format, Examples |
---|---|
Add deadline | deadline NAME /by DATE e.g., deadline Save Mudkip /by 2020-09-09 |
Add event | event NAME /at DATE e.g., event Attend Sobble's birthday /at 2020-12-12 |
Add todo | todo NAME e.g., todo Defeat Gengar |
Delete | delete INDEX e.g., delete 3 |
Done | done INDEX e.g., done 2 |
Exit | bye |
Find | find KEYWORD e.g., find Save |
List | list |
Sort | sort SORT_ORDER e.g., sort asc |
- Pokemon Fandom for providing the following images:
- Oracle documentation for providing CSS code
- SoC AB-3 team for providing reference for the User Guide