Duke is a command line interface (CLI) application that helps you keep track of your tasks. It is cross platform and can run on any machine that has Java installed. This serves as a User Guide for the CS2113 individual project.
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 for your Duke.
Open the terminal and navigate to the folder where you saved duke.jar.
Run the command java -jar duke.jar to start the app.
A welcome greeting message by duke will be shown:
____________________________________________________________
Hello! I'm Duke
What can I do for you?
____ _
| _ \ _ _| | _____
| | | | | | | |/ / _ \
| |_| | |_| | < __/
|____/ \__,_|_|\_\___|
____________________________________________________________
Type the command in the command box Enter command: and press Enter to execute. For example typing list and pressing Enter will list all the tasks you have.
Refer to Features
Todo - Add a todo taskAdds a todo task to the task list.
Example of usage:
todo (DESCRIPTION)
Expected input and outcome:
Enter command: todo apple
Got it. I've added this task: Got it. I've added this task: [T][ ] apple
Deadline - Add a deadline taskAdds a deadline task to the task list.
Example of usage:
deadline (DESCRIPTION) /by (DATE)
Expected input and outcome:
Enter command: deadline potato /by Friday
Got it. I've added this task: [D][ ] potato (Friday)
Event - Add an event taskAdds an event task to the task list.
Example of usage:
event (DESCRIPTION) /from (DATE) /to (DATE)
NOTE: The order of the /from and /to is important. Ensure that /from comes before /to.
Expected input and outcome:
Enter command: event pear /from Monday /to Thursday
Got it. I've added this task: [E][ ] pear (Monday to Thursday)
Find - Find tasks by keywordPrints out all tasks that contains the keyword. Search is case sensitive.
Example of usage:
find (KEYWORD)
Expected input and outcome:
Enter command: find apple
Here are the matching tasks in your list:
3. [T][ ] apple
Delete - Delete task by indexDeletes the task at the specified index.
Example of usage:
delete (INDEX)
Expected input and outcome:
Enter command: delete 3
Noted. I've removed this task: [T][ ] apple
Mark - Mark task by indexMarks the task at the specified index as done.
Example of usage:
mark (INDEX)
Expected input and outcome:
Enter command: mark 3
Nice! I've marked this task as done: [T][X] apple
Unmark - Unmark task by indexUnmarks the task at the specified index as done.
Example of usage:
unmark (INDEX)
Expected input and outcome:
Enter command: unmark 3
Nice! I've unmarked this task as done: [T][ ] apple
List - List all tasksLists all tasks in the task list.
Example of usage:
list
Expected input and outcome:
Enter command: list
Here are the tasks in your list:
1. [T][ ] potato
2. [T][ ] banana
3. [T][ ] apple
Bye - Exits the programExits the program.
Example of usage:
bye
Expected input and outcome:
Enter command: bye
Bye. Hope to see you again soon!
The program will create a file /data/duke.txt to store the tasks on the disk. The tasks will be loaded from the file when the program starts and will be saved to the file when the program exits.
| Command | Format | Description |
|---|---|---|
| todo | todo [description] |
Adds a new todo task with the given description. |
| deadline | deadline [description] /by [date/time] |
Adds a new deadline task with the given description and due date/time. |
| event | event [description] /from [start time] /to [end time] |
Adds a new event task with the given description and from/to times. |
| bye | bye |
Exits the program. |
| list | list |
Lists all tasks. |
| mark | mark [index] |
Marks the specified task as done. |
| unmark | unmark [index] |
Unmarks the specified task as done. |
| delete | delete [index] |
Deletes the specified task. |
| find | find [keyword] |
Finds all tasks that contain the specified keyword. |