User Guide
About Duke
Duke is a personal assistant chat bot with a command line interface to manage all your upcoming tasks
Quick Guide
- Ensure you have
Java 11
or above installed in your computer. - Download the latest
Duke.jar
here. - Store
Duke.jar
at the folder you intend to use as your home folder. - Navigate to the folder in your Command Prompt (Windows) or Terminal (MacOS & Linux).
- Type
java -jar Duke.jar
to start the app.
Refer to the next section Features for details of each command.
Features
- Create a todo
- Create a deadline
- Create an event
- List all tasks
- Mark task
- Delete task
- Find task
- Exit Duke
- Saving
Feature 1. Create new Todo: Todo
Adds a new Todo to the TaskList
Syntax: todo DESCRIPTION
Example of usage:
todo buy lunch
Expected outcome:
1. [T][N] buy lunch
Feature 2. Create new Deadline: Deadline
Adds a new deadline to the TaskList
Syntax: deadline DESCRIPTION /by DATE
Example of usage:
deadline complete CS1010 Assignment /by 10-03-2022
Expected outcome:
2. [D][N] complete CS1010 Assignment ( by: 10-03-2022 )
Feature 3. Create new Event: Event
Adds a new event to the TaskList.
Syntax: event DESCRIPTION /at DATE
Example of usage:
event attend cousin wedding /at 01-04-2022
Expected outcome:
3. [E][N] attend cousin wedding ( at: 01-04-2022 )
Feature 4. List all tasks: List
List out all the existing tasks in the TaskList
Syntax: List
If there are existing tasks
Example of usage:
list
Expected outcome:
1. [T][N] buy lunch
2. [D][N] complete CS1010 Assignment ( by: 10-03-2022 )
3. [E][N] attend cousin wedding ( at: 01-04-2022 )
Now you have 3 tasks in the list.
If there are no existing tasks
Example of usage:
list
Expected outcome:
Empty!
Feature 5. Mark existing tasks: Mark
Marks an existing task in the TaskList
Syntax: mark INDEX
If there are existing tasks
Example of usage:
mark 1
Expected outcome:
You have marked -- [T][Y] buy lunch
If there are no existing tasks
Example of usage:
mark 1
Expected outcome:
Out of Bound!
Feature 6. Delete existing tasks: Delete
Deletes an existing task in the TaskList
Syntax: delete INDEX
If there are existing tasks
Example of usage:
delete 1
Expected outcome:
You have deleted -- [T][Y] buy lunch
If there are no existing tasks
Example of usage:
delete 1
Expected outcome:
Out of Bound!
Feature 7. Find existing tasks: Find
Find an item using a keyword in the TaskList
Syntax: find KEYWORD
If there are existing tasks
Example of usage:
find lunch
Expected outcome:
1. [T][N]buy lunch
There are 1 items found.
If there are no existing tasks
Example of usage:
find boy
Expected outcome:
Item not found!!!
Feature 8. Exit the program: Exit
Exits the program
Syntax: bye
Example of usage:
bye
Expected outcome:
Bye. Hope to see you again soon!
Feature 9. Saving information
- Duke automatically saves the task list into your OS home directory under
/Duke.txt
- Duke automatically loads the task list from previous session if the file
/Duke.txt
exist in your home directory. - If the file
/Duke.txt
does not exist in your home directory, Duke automatically creates a new/Duke.txt
in your home directory.