Duke is a desktop app for managing todo tasks, deadlines, and events, optimised for use via a Command Line Interface (CLI).
Prerequisites: JDK 11.
- Ensure you have Java 11 installed on your computer.
- Download the latest
Duke.jar
from here. - Copy the file to the folder you want to use as the home folder for Duke.
- In the terminal, navigate to Duke's home folder and run the following command:
After the command is run, the program starts and you should see this as the output:
java -jar Duke.jar
Hello from ____ _ | _ \ _ _| | _____ | | | | | | | |/ / _ \ | |_| | |_| | < __/ |____/ \__,_|_|\_\___| __________________________________________________ Hello! I'm Duke, your friendly agenda chatbot! Is there anything I can do for you today? __________________________________________________
- Type the command in the command line and press Enter to execute it.
Some example commands you could try:list
: Lists all tasks.todo Task
: Adds a task namedTask
to the task list.delete 2
: Deletes the 2nd task shown in the current list.done 4
: Marks the 4th task shown in the current list as done.bye
: Exits the app.
- Refer to the Features below for details of each command.
Adds a todo task to the task list.
Format: todo TASKNAME
Example:
todo Read Book
__________________________________________________
Added todo: Read Book
__________________________________________________
Adds a deadline task to the task list.
Format: deadline TASKNAME /by YYYY/MM/DD HHMM
Example:
deadline Return Book /by 2021/10/01 1200
__________________________________________________
Added deadline: Return Book (by: 2021/10/01 1200)
__________________________________________________
Adds an event task to the task list.
Format: event TASKNAME /at YYYY/MM/DD HHMM
Example:
event Book Club /at 2021/09/25 1630
__________________________________________________
Added event: Book Club (at: 2021/09/25 1630)
__________________________________________________
Shows a list of all tasks in the task list.
Format: list
Example:
list
__________________________________________________
Here are the tasks in your list:
1. [T][ ] Read Book
2. [D][ ] Return Book (by: 01 October 2021 Fri 00:00 pm)
3. [E][ ] Book Club (at: 25 September 2021 Sat 04:30 pm)
__________________________________________________
Marks the INDEX
th task as done.
Format: done INDEX
Example:
done 2
__________________________________________________
Nice! You completed this task:
[X] Return Book
__________________________________________________
Deletes the INDEX
th task from the list.
Format delete INDEX
Example:
delete 3
__________________________________________________
Seems like you didn't want this task:
[E][ ] Book Club (at: 25 September 2021 Sat 04:30 pm)
__________________________________________________
Finds tasks with descriptions which contain all of the given keywords.
Format: find KEYWORD [MORE_KEYWORDS]
Example:
find book
__________________________________________________
Here are the matching tasks in your list:
1. [T][ ] Read Book
2. [D][X] Return Book (by: 01 October 2021 Fri 00:00 pm)
__________________________________________________
Finds tasks with a certain date.
Format: filter YYYY/MM/DD
Example:
filter 2021/10/01
__________________________________________________
These are the tasks for 2021-10-01:
1. [D][X] Return Book (by: 01 October 2021 Fri 00:00 pm)
__________________________________________________
Exits the program. Have a productive day!
Format: bye
Action | Format, Examples |
---|---|
Add todo | todo TASKNAME e.g., todo Read Book |
Add deadline | deadline TASKNAME /by YYYY/MM/DD HHMM e.g., deadline Return Book /by 2021/10/01 1200 |
Add event | event TASKNAME /at YYYY/MM/DD HHMM e.g., event Book Club /at 2021/09/25 1630 |
List | list |
Mark as done | done INDEX e.g., done 2 |
Delete | delete INDEX e.g., delete 3 |
Find | find KEYWORD [MORE_KEYWORDS] e.g., find book |
Filter | filter YYYY/MM/DD e.g., filter 2021/09/25 |
Exit | bye |