Duke is a desktop app for managing tasks, optimized for use via a Command Line Interface (CLI). There is no Graphical Interface (GUI), but the program will work better than traditional apps if you can type fast.
Words in UPPER_CASE are the parameters to be supplied by the user.
e.g. in todo DESCRIPTION, DESCRIPTION is a parameter which can be used as todo read book
Extraneous parameters for commands that do not take in parameters (such as help, list, bye and clear) will be ignored.
e.g. if the command specifies help lmao, it will be interpreted as help.
helpDisplays usage information on all available commands.
Format: help
todoAdds a todo task to the task list.
Format: todo DESCRIPTION
DESCRIPTION cannot be empty.Example:
|| _____________________________________________________________________
|| What would you like to do? Type 'help' if you're confused!
|| todo do homework
|| _____________________________________________________________________
|| Got it! I've added this task:
|| [T][ ] do homework
|| Now you have 1 tasks in the list.
|| _____________________________________________________________________
deadlineAdds a deadline task to the task list.
Format: deadline DESCRIPTION /by DEADLINE
DESCRIPTION and DEADLINE cannot be emptyDEADLINE should be formatted as yyyy-mm-dd, but other formats are also accepted.Example:
|| _____________________________________________________________________
|| What would you like to do? Type 'help' if you're confused!
|| deadline CS2113T iP /by 2021-10-01
|| _____________________________________________________________________
|| Got it! I've added this task:
|| [D][ ] CS2113T iP (by: Oct 1 2021)
|| Now you have 2 tasks in the list.
|| _____________________________________________________________________
eventAdds an event task to the task list.
Format: event DESCRIPTION /at DATE_TIME
DESCRIPTION and DATE_TIME cannot be emptyExample:
|| _____________________________________________________________________
|| What would you like to do? Type 'help' if you're confused!
|| event birthday party /at Tomorrow 6pm
|| _____________________________________________________________________
|| Got it! I've added this task:
|| [E][ ] birthday party (at: Tomorrow 6pm)
|| Now you have 3 tasks in the list.
|| _____________________________________________________________________
listShows a list of all the tasks in the task list.
Example:
|| What would you like to do? Type 'help' if you're confused!
|| list
|| _____________________________________________________________________
|| Here are the tasks in your list:
|| 1.[T][ ] do homework
|| 2.[D][ ] CS2113T iP (by: Oct 1 2021)
|| 3.[E][ ] birthday party (at: Tomorrow 6pm)
|| _____________________________________________________________________
doneMarks a task in the task list as done.
Format: done TASK_INDEX
TASK_INDEX as done.TASK_INDEX refers to the index number shown in the task list.TASK_INDEX must be a positive integer (e.g. 1, 2, 3, …). Example:
|| _____________________________________________________________________
|| What would you like to do? Type 'help' if you're confused!
|| done 1
|| _____________________________________________________________________
|| Nice! You did the following task:
|| [X] do homework
|| _____________________________________________________________________
deleteDeletes the specified task from the task list.
Format: delete TASK_INDEX
TASK_INDEX.TASK_INDEX refers to the index number shown in the task list.TASK_INDEX must be a positive integer (e.g. 1, 2, 3, …). Example:
|| _____________________________________________________________________
|| What would you like to do? Type 'help' if you're confused!
|| delete 2
|| _____________________________________________________________________
|| Got it. I've removed this task for you:
|| [D][ ] CS2113T iP (by: Oct 1 2021)
|| Now you have 2 tasks in the list.
|| _____________________________________________________________________
findFinds and displays tasks that match a specified keyword.
Format: find KEYWORD
read book will match READ BOOK)Example:
|| _____________________________________________________________________
|| What would you like to do? Type 'help' if you're confused!
|| find homework
|| _____________________________________________________________________
|| Here are the matching tasks in your list:
|| 1.[T][X] do homework
|| _____________________________________________________________________
clearClears all tasks from the task list.
Format: clear
byeExits the program.
Format: bye
Tasks in the task list are saved automatically after every command by Duke.
There is no need to save manually.
| Action | Format/Examples |
|---|---|
| todo | todo DESCRIPTION e.g. todo do homework |
| deadline | deadline DESCRIPTION /by DEADLINE e.g. deadline assignment /by 2021-10-20 |
| event | event DESCRIPTION /at DATE_TIME e.g. event party /at Tomorrow 6pm |
| done | done TASK_INDEX e.g. done 1 |
| delete | delete TASK_INDEX e.g. delete 1 |
| find | find KEYWORD e.g. find assignment |
| list | list |
| help | help |
| clear | clear |
| bye | bye |