Duke User Guide
Content
- Introduction
- Quick Start
- Usage
3.1 Viewing help:help
3.2 Listing all tasks:list
3.3. Adding a todo task:todo
3.4. Adding a deadline task:deadline
3.5. Adding an event task:event
3.6. Marking a task as completed:done
3.7. Deleting a task:delete
3.8. Finding a keyword:find
3.9. Exiting the program:bye
- Command Summary
1. Introduction
Duke is a Command Line Interface (CLI) bot that helps you to store and manage your tasks with ease. Using simple keyboard commands, you can list all tasks, add and delete tasks, mark tasks as completed and find tasks with keywords.
2. Quick Start
- Ensure you have Java 11 or above installed in your Computer.
- Download the latest Duke.jar jar file.
- Copy the file to the folder you want to use as the home folder for your Duke.
- Open the command prompt on your Computer. Navigate to your Duke home folder.
- Enter “java -jar Duke.jar” to run the jar file.
- Type the command in the command box and press Enter to execute it.
- Here are some example commands you can try:
list
: lists all taskstodo shopping
: adds a todo task named shopping to the task list.delete 3
: deletes the 3rd task shown in the current listexit
: exits the app. - Refer to Section 3, “Usage” for details of each command.
3. Usage
Command Format:
Items in square brackets are the parameters to be supplied by the user. For example, in todo [task name]
, [task name]
can be replaced with “exercise” in todo exercise
.
3.1. Viewing help: help
Format:
help
Expected outcome:
____________________________________________________________
You can try the following commands:
list
todo <task name>
deadline <task name> /by <date>
event <task name> /at <location>
done <task number>
find <word>
delete <task number>
bye
____________________________________________________________
3.2. Listing all tasks: list
Format:
list
Expected outcome (example):
____________________________________________________________
Here are the tasks in your list:
1. [T][✘] task1
2. [T][✓] task2
3. [T][✘] task3
____________________________________________________________
3.3. Adding a todo task: todo
Format:
todo [task name]
Explanation:
[task name]
is the name of the todo task.
Example of usage:
todo buy groceries
Expected outcome:
____________________________________________________________
Got it. I've added this task:
[T][✘] buy groceries
Now you have 1 tasks in the list.
____________________________________________________________
3.4. Adding a deadline task: deadline
Format:
deadline [task name] /by [date]
Explanation:
[task name]
is the name of the deadline task. [date]
is the due date of the deadline task.
Example of usage:
deadline pay bills /by 2/4/2020
Expected outcome:
____________________________________________________________
Got it. I've added this task:
[D][✘] pay bills (by: 2/4/2020)
Now you have 4 tasks in the list.
____________________________________________________________
3.5. Adding an event task: event
Format:
event [task name] /at [location]
Explanation:
[task name]
is the name of the event task. [location]
is the location of the event task.
Example of usage:
event party /at Ben’s house
Expected outcome:
____________________________________________________________
Got it. I've added this task:
[E][✘] party (at: Ben’s house)
Now you have 5 tasks in the list.
____________________________________________________________
3.6. Marking a task as completed: done
Format:
done [task number]
Explanation:
[task number]
is the nth position in the task list of the task to be marked as completed.
Example of usage:
To mark the 2nd task in the task list as completed
done 2
Expected outcome:
list
____________________________________________________________
Here are the tasks in your list:
1. [T][✘] task1
2. [T][✘] task2
3. [T][✘] task3
____________________________________________________________
done 2
____________________________________________________________
Nice! I've marked this task as done:
[T][✓] task2
____________________________________________________________
3.7. Deleting a task: delete
Format:
delete [task number]
Explanation:
[task number]
is the nth position in the task list of the task to be deleted.
Example of usage:
To delete the 3rd task in the task list
delete 3
Expected outcome:
list
____________________________________________________________
Here are the tasks in your list:
1. [T][✘] task1
2. [T][✘] task2
3. [T][✘] task3
____________________________________________________________
delete 3
____________________________________________________________
Noted. I've removed this task:
[T][✘] task3
Now you have 2 tasks in the list.
____________________________________________________________
3.8. Finding a keyword: find
Format:
find [keyword]
Explanation:
find [keyword]
lists all tasks that contain the word or phrase [keyword]
.
Example of usage:
To list tasks with the word “meet”
find meet
Expected outcome:
list
____________________________________________________________
Here are the tasks in your list:
1. [E][✘] board meeting (at: office)
2. [T][✘] homework
3. [T][✘] meet Amy for lunch
____________________________________________________________
find meet
____________________________________________________________
Here are the matching tasks in your list:
1. [E][✘] board meeting (at: office)
2. [T][✘] meet Amy for lunch
____________________________________________________________
3.9. Exiting the program: bye
Format:
bye
Expected outcome:
____________________________________________________________
Bye. Hope to see you again soon!
____________________________________________________________
4. Command Summary
-
Viewing help:
help
-
Listing all tasks:
list
-
Adding a todo task:
todo <task name>
Eg.todo exercise
-
Adding a deadline task:
deadline <task name> /by <date>
Eg.deadline pay bills /by 2/4/2020
-
Adding an event task:
event <task name> /at <location>
Eg.event party /at Ben’s house
-
Marking a task as completed:
done <task number>
Eg.done 2
-
Deleting a task :
delete <task number>
Eg.delete 2
-
Finding a keyword:
find <keyword>
Eg.find meet
-
Exiting the program :
bye