Duke is a desktop app for managing tasks, optimised for use via a command line interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, Duke can manage and organise your tasks faster than traditional GUI apps. The chat interface also gives users a more personal feeling.
todo
deadline
event
tag
list
today
completed
find
done
delete
bye
help
11
or above installed on your computer.java -jar duke.jar
for Mac.
You should be seeing the below GUI after a few seconds:Some example commands you can try:
list
: Lists all current existing tasks.todo run 5KM
: Adds a todo task run 5KM
to the list of tasks.today
: Lists down all time based tasks which has a datetime of the current day.delete 1
: Deletes the first task shown in the list.done 3
: Marks the third task in the list as done.bye
: Exits the app
ℹ️ Notes about the command format:
- Words in
UPPER_CASE
are the parameters to be supplied by the user.
eg. intodo DESCRIPTION
,DESCRIPTION
is a parameter which can be used astodo run 5KM
.- Parameters must be in the order specified.
- Command is case-insensitive.
todo
Adds a todo task to the list of tasks.
Format: todo DESCRIPTION
Example of usage:
todo run 5KM
todo read book
deadline
Adds a task which has a deadline to the list of tasks.
Format: deadline DESCRIPTION /by DATETIME
⚠️ For
DATE TIME
parameters in both deadline and event features, only the following formats are accepted:
Format | Example |
---|---|
d/M/yyyy | 9/10/2020 |
d MMM yyyy | 9 Oct 2020 |
d MMMM yyyy | 9 October 2020 |
d-M-yyyy | 9-10-2020 |
d/M/yyyy | 2020-10-9 |
Format | Example |
---|---|
Hmm | 2359 |
HH:mm | 15:30 |
Example of usage:
deadline return book /by 15/09/2020 2359
👍 All dates and time are displayed as
dd MMM yyyy h:mm A
event
Adds an event to the list of tasks.
Format: event DESCRIPTION /at DATETIME
ℹ️ Refer to Adding a deadline:
deadline
to find out the accepted date and time formats.
Example of usage:
event meeting /at 9 Oct 2020, 10/10/2020 4:30 PM
tag
Sets a tag to a task item.
Format: tag INDEX #TAGNAME
Example of usage:
tag 1 #sports
tag 2 #CS2103T
list
Shows a list of all existing tasks.
Format: list
today
Shows a list of all time-based tasks, such as event and deadline tasks, that are happening today.
Format: today
uncompleted
Shows a list of all tasks that have not been completed yet.
Format: uncompleted
.
completed
Shows a list of all tasks that have already been completed yet.
Format: completed
.
overdue
Shows a list of all tasks that are overdue and have not been completed.
Format: overdue
.
find
Finds tasks whose description matches the keyword.
Format: find KEYWORD
Examples:
find book
done
Marks a task as completed.
Format: done INDEX
ℹ️
INDEX
refers to the index of the task as displayed when executinglist
.
Example of usage:
done 1
delete
Deletes a task from the list of tasks.
Format: delete INDEX
ℹ️
INDEX
refers to the index of the task as displayed when executinglist
.
Example of usage:
delete 1
help
Provides a list of possible commands that the user can use within the application.
Format: help
bye
Exits the program.
Format: bye
All tasks are saved in the hard drive automatically after every command and once the program has terminated as well. There is no need to save manually.
💡 Data is stored in /data/duke.txt relative to the home folder.
Action | Format | Examples |
---|---|---|
todo |
todo DESCRIPTION |
todo read book |
deadline |
deadline DESCRIPTION /at DATE TIME |
deadline return book /by 15/9/2020 2359 |
event |
event DESCRIPTION /at (DATE TIME |
event meeting /at 15/9/2020 1100 |
tag |
tag INDEX #TAGNAME |
tag 1 #sports |
list |
list |
|
today |
today |
|
uncompleted |
uncompleted |
|
completed |
completed |
|
overdue |
overdue |
|
find |
find KEYWORDS |
find book |
done |
done INDEX |
done 3 |
delete |
delete INDEX |
delete 2 |
bye |
bye |
|
help |
help |