Duke is a desktop app for managing tasks, deadlines and other events. It’s named after the Java mascot Duke, and the UI developed with the use of JavaFX. Given below are instructions on how to use it.
Java 11 or above installed in your Computer.duke.jar from here.
help and pressing Enter will open the command list. More commands can be found below.The letter inside the brackets next to each command name is the shortcut for that command; type those instead for faster execution!
help(h)Shows a message in the app with the list of available commands for you to use.
Format: help
list(l)Shows all tasks listed in data/duke.txt.
Format: list
bye(b)Closes the application.
Format: bye
done(o)Marks a task with the indicated INDEX as complete. The INDEX must be a positive number and corresponds to the index number shown in the displayed task list. Command will fail if INDEX exceeds the number of tasks in the list.
Format: done INDEX
Example: done 3
delete(x)Deletes a task with the indicated INDEX. The INDEX must be a positive number and corresponds to the index number shown in the displayed task list. Command will fail if INDEX exceeds the number of tasks in the list.
Format: delete INDEX
Example: delete 5
check(c)Lists all tasks with the indicated DATE. The DATE must be in YYYY-MM-DD format. If no tasks occur on the DATE, the command will return an empty list.
Format: check DATE
Example: check 2020-09-01
todo(t)Adds a todo task to the task list with a provided DESC. The DESC should not be empty, otherwise the command will fail. DESC can contain more than one word.
Format: todo DESC
Example: todo finish this user guide
deadline(d)Adds a deadline task to the task list with a provided DESC and DATE. The DESC should not be empty and the DATE must be in YYYY-MM-DD format, otherwise the command will fail. DESC can contain more than one word.
Format: deadline DESC /by DATE
Example: deadline update iP increments /by 2020-09-16
event(e)Adds an event task to the task list with a provided DESC and DATE. The DESC should not be empty and the DATE must be in YYYY-MM-DD format, otherwise the command will fail. DESC can contain more than one word.
Format: event DESC /at DATE
Example: event CS2103T Tutorial /at 2020-09-16
find(f)Lists all tasks with the indicated KEYWORD. The KEYWORD can be longer than one word. If no tasks contain the KEYWORD, the command will return an empty list.
Format: find KEYWORD
Example: find Tutorial
| Action | Format/Examples |
|---|---|
| help | help |
| list | list |
| bye | bye |
| done | done INDEXe.g. done 3 |
| delete | delete INDEXe.g. delete 2 |
| check | check DATEe.g. check 2020-07-02 |
| todo | todo DESCe.g. todo new stuff |
| deadline | deadline DESC /by DATEe.g. deadline this thing /by 2020-09-09 |
| event | event DESC /at DATEe.g. event something else /at 2020-12-12 |
| find | find KEYWORDe.g. find something |