JM’s Duke
This is the user guide for JM’s take on the CS2103T greenfield project Duke, a chatbot that uses the Command Line Interface (CLI).
Setting up
Duke is best run with Java 11.
- Download the jar file
duke.jar
.
- Move the jar file to a directory of your choice.
- Under the same directory, create a new folder and name it data.
- Double click on the jar file to run Duke. If the program does not open run it from the terminal with the command
java -jar duke.jar
.
Features
Duke handles your tasks and reminds you of upcoming events/deadlines.
- Adding tasks
todo
Usage: todo [task description]
Adds a simple todo task to Duke’s list.
deadline
Usage: deadline [task description] /by YYYY-MM-DD HH:MM
Adds a task to Duke’s list with a deadline. Both date and time are required.
event
Usage: event [task description] /at YYYY-MM-DD HH:MM
Adds an event with the time and date of the event to Duke’s list. Both date and time are required.
- List your tasks:
list
Usage: list
Displays the list of all your tasks.
- Setting tasks as done:
done
Usage: done [position of task in the list as shown with the list command]
Sets a task of your choice to be done. The status of a done task is denoted by the ✔ symbol.
- Delete a task:
delete
Usage: delete [position of task in the list as shown with the list command]
Deletes a task of your choice. Be careful as this action is irreversible.
- Reminder:
reminder
Usage: reminder
Lists upcoming tasks within the week.
- Find task by keyword:
find
Usage: find [keyword]
Finds and lists tasks containing the keyword.
- Exit:
bye
Usage: bye
Exits Duke and saves your list to the storage file in the data folder. Duke will save your tasks to the file only if you exit with this command.