Duke is a Personal Assistant Chatbot that helps a person to keep track of various of things via a Command Line Interface.
You will use this as a baseline for the individual project, as well as the team project later in the semester.
- Quick Start
- Features
- Viewing all tasks:
list - Add a Todo task:
todo - Add a Deadline task:
deadline - Add a event task:
event - Mark a task as done:
mark - Unmark a task:
unmark - Deleting a task:
delete - Finding tasks:
find - Exit the programme:
bye - Saving the data
- Editing the data file
- Changing the save location.
- Viewing all tasks:
Prerequisites: JDK 11, update Intellij to the most recent version.
- Download the latest ip.jar from the Releases.
- Copy the jar file to the folder you prefer to use as the home folder for Duke.
- Double-click the file or run the command
java -jar ip.jarto run the programme. - Type the command into the interface and press Enter to execute it.
Some example commands you can try:
list: List all tasksdeadline ip submission /by 2022-05-21 1800: Add a deadline ip submission to task list.mark 1: Mark ip submission as done.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.
Viewing all tasks in duke
Format: list
Example: list
Add a Todo task to duke.
Format: todo DESCRIPTION
Things to note:
- DESCRIPTION cannot be empty
Example:todo shopping
Add a Deadline task to duke.
Format: deadline DESCRIPTION /by YYYY-MM-DD HHMM
Things to note:
- DESCRIPTION cannot be empty
- Spaces around
/by - Dates and times cannot be empty and must in the format of YYYY-MM-DD HHMM
Example:deadline ip submission /by 2022-05-21 1800
Add an Event task to duke.
Format: event DESCRIPTION /at YYYY-MM-DD HHMM
Things to note:
- DESCRIPTION cannot be empty
- Spaces around
/at - Dates and times cannot be empty and must in the format of YYYY-MM-DD HHMM
Example: event cs2113 final /at 2022-11-01 1700
Mark task as done based on its index.
Format: mark INDEX
Things to note:
- INDEX cannot be empty.
- INDEX cannot be out of range.
Example: mark 2
Unmark task identified by its index.
Format: unmark INDEX
Things to note:
- INDEX cannot be empty.
- INDEX cannot be out of range.
Example: unmark 2
Delete a task from duke based on the index of the task.
Format: delete INDEX
Things to note:
- INDEX cannot be empty.
- INDEX cannot be out of range.
Example: delete 2
Find tasks based on keyword
Format: find KEYWORD
Things to note:
- KEYWORD is case-sensitive.
Example: find ip
Exits the programme.
Format: bye
Example: bye
Data from duke are saved in the hard disk automatically after executing the command that alters the data.
Duke data are stored save as txt file [JAR file location]/data/duke.txt. User can update data directly by editing that txt file.
User can change the location of the save data by changing the string DUKE_DATA_PATH in Duke.java.