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.
todo
deadline
event
list
find
delete
done
update
updateDesc
updateTime
bye
11
or above installed on your computer.java -jar duke.jar
for Mac.
You should see the below GUI after a few seconds:
Some example commands you can try:
todo study cs2103t
: Adds a todo study cs2103t
to the list of tasks.list
: Lists all tasks.done 8
: Marks the eight 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 study
.- Items with
...
after them can be used multiple times but at least once, separated by a comma.
egfind KEYWORD...
can be used asfind study
orfind study cs2103t
.- Parameters must be in the order specified.
- Command is case-insensitive.
todo
Adds a ToDo. A ToDo is a task with only a description.
Format: todo d/DESCRIPTION
Examples:
toDo d/read a book
toDo d/study for CS2103T
deadline
Adds a Deadline. A Deadline is a task with a description and the deadline by which the task must be completed.
Format: deadline d/DESCRIPTION /by t/TIME_DATE
⚠️ For
TIME_DATE
parameters in both deadline and event features, Duke is accepts all formats including text, Duke is also able to recognize the date format YYYY-MM-DD and display it as dd-MMM-yyyy.
Examples:
deadline d/CS2103T Submission /by t/2021-12-26
deadline d/CS2100 homework /by t/tmr
💡 Tip: If you uncertain, you can key the date as unknown, and update it later on!
event
Adds an Event. An Event is a task with a description and the time/day when the event is occurring.
Format: event d/DESCRIPTION /at t/TIME_DATE
ℹ️ Refer to Adding a deadline:
deadline
to find out about date formats.
Examples:
event d/CS2103T Lecture /at t/2021-12-26
event d/CS2100 Tutorial /at t/tmr
list
Shows a list of all Tasks stored.
Format: list
find
Finds Tasks whose descriptions contain the all given keywords.
Format: find k/KEYWORD
read book
or
book read
will show different results.boo
will not match book
);Examples:
find k/CS2100
Expected outcome:
Here are the matching tasks in your list:
1. [D][✘] CS2100 Assignment 1 (by 12 Sep 2020 2:00 PM)
2. [E][✘] Finals for CS2100 (at 15 Oct 2020 2:00 PM)
delete
Deletes the specified Task at the index.
Format: delete i/INDEX
ℹ️
INDEX
refers to the index of the task shown in the displayed person list.
Examples:
delete i/5
deletes the 5th task in Duke.delete i/2
deletes the 2nd task in Duke.done
Marks a task as done.
Format: done i/INDEX
ℹ️
INDEX
refers to the index of the task shown in the displayed person list.
Example of usage:
done 1
marks the 1st task in Duke as done.update
Updates a Task at the specified index and completely overwrites the Task to be updated.
Format: update i/INDEX t/TASK
ℹ️
TASK
refers to the updated task, and its format should be one of the Tasks formats. Refer to
Examples:
update i/1 t/event CS2103 Lecture /at t/2021-12-05
Expected Outcome:
[E][✘] Finals for CS2100 (at 15 Oct 2020)
updated to
[E][✘] CS2103 Lecture (at 05 Dec 2020)
updateTime
Updates the date/time of a Deadline/Event at the specified index.
Format: updateTime i/INDEX t/TIME_DATE
Examples:
updateTime i/1 t/2021-12-05
Expected Outcome:
[E][✘] Finals for CS2100 (at 15 Oct 2020)
updated to
[E][✘] Finals for CS2100 (at 05 Dec 2020)
updateDesc
Updates the description of a Task at the specified index.
Format: updateDesc i/INDEX d/DESCRIPTION
Examples:
updateDesc i/5 d/study
Expected Outcome:
[E][✘] Finals for CS2100 (at 15 Oct 2020)
updated to
[E][✘] study (at 15 Oct 2020)
Exits the program.
Format: Bye
Duke data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.
💡 Data is stored in /duke.txt relative to the home folder.
Action | Format | Examples
—— | —— | ——–
todo
| todo DESCRIPTION
| todo read book
deadline
| deadline DESCRIPTION /by TIME_DATE
| deadline assignment /by 2021-05-12
event
| event DESCRIPTION /at TIME_DATE
| event meeting /at tmr
list
| list
find
| find KEYWORDS
| find read
, find read book
done
| done INDEX
| done 2
delete
| delete INDEX
| delete 1
update
| update INDEX TASK
| update 1 todo read book
updateTime
| updateTime INDEX TIME_DATE
| updateTime 2 2020-12-01
updateDesc
| updateDesc INDEX DESCRIPTION
| updateDesc 5 study
bye
| bye