By: Gerard Tan Wei Kiat Since: March 2021
Duke is a command-line style personal assistant application that aims to help you in managing and tracking your daily tasks.
Prerequisites: JDK 11
Java 11 installed on your computer.ip.jar from here.ip.jar into a folder of your choice. This will be the installation directory of ip.jar.command prompt and cd to the installation directory of ip.jar.Duke, run the command java -jar ip.jar and Duke will greet you with the following welcome message:
NOTE: The commands listed below must be entered as lowercase letters and must not contain ‘|’ as input.
todoAdds a Todo task to the existing list of tasks maintained by Duke.
Format: todo <task_description>
Example: todo clear the trash
Expected Output:

deadlineAdds a Deadline task to the existing list of tasks maintained by Duke.
Format: deadline <task_description> /by <due_date>
Example: deadline submit assignment /by 15th March 2021 4pm
Expected Output:

eventAdds an Event task to the existing list of tasks maintained by Duke.
Format: event <task_description> /at <timeframe>
Example: event birthday party /at 15th June 2021 2pm to 4pm
Expected Output:

listDisplays a list of all tasks maintained by Duke.
Format: list
Expected Output:

doneMarks the specified task as completed.
Format: done <task_number>
Example: done 1
Expected Output:

deleteDeletes the specified task from the list of tasks maintained by Duke.
Format: delete <task_number>
Example: delete 1
Expected Output:

findSearch all tasks that contains the provided keyword.
Format: find <keyword>
Example: find 4pm
Expected Output:

byeExits the Duke program.
Format: bye
Note: Even though the usage of CTRL+C or CTRL+Z will execute the bye command, but please do not do it as it
is not guaranteed that your data will be saved properly.
Expected Output:

The list of tasks maintained by Duke are automatically saved into saveFile.txt upon the successful execution of a
todo, deadline, event, done, delete or bye command.
Tasks saved in saveFile.txt are automatically loaded whenever Duke starts.
Q1: Where is saveFile.txt located after I close the program?
saveFile.txtis located in the installation directory of Duke. If it is not located there, Duke will automatically create it for you in the installation directory.
Q2: How can I transfer my saved tasks information to another computer?
Run Duke on the other computer and overwrite the empty
saveFile.txtcreated, with thesaveFile.txtthat contains the data of your previous Duke usage.
| Command | Format | Example |
|---|---|---|
| todo | todo <task_description> |
todo clear the trash |
| deadline | deadline <task_description> /by <due_date> |
deadline submit assignment /by 15th March 2021 4pm |
| event | event <task_description> /at <timeframe> |
event birthday party /at 15th June 2021 2pm to 4pm |
| list | list |
- |
| done | done <task_number> |
done 1 |
| delete | delete <task_number> |
delete 1 |
| find | find <keyword> |
find 4pm |
| bye | bye |
- |