Starter code for the Duke project
Duke is a chatbot that can help you manage your tasks. You can tell Duke to add, delete and mark as done tasks via short, simple to remember commands.
java -jar Duke.jar
Duke comes with a GUI to provide users with visual feedback when Duke performs tasks.
Duke manages your tasks which are categorized into three types:
You can add, delete, find and mark tasks as done from the list.
List all the tasks that Duke has in its database.
Example usage:
list
It will show all the tasks in the database.
Adds a new task to Duke’s database. Duke classifies tasks into three types, so it accepts the following formats:
todo <description>
deadline <description> /by <due-date>
due-date
to the database. The due-date
must be in yyyy-MM-dd
format.event <description> /at <event-date>
event-date
to the database. The event-date
must be in yyyy-MM-dd
format.Sample usage:
todo read book
read book
. Duke will update you if the todo is added successfully or there is a parsing error.event project meeting /at 2020-01-10
project meeting
and event date Jan 10 2020
. Duke will update you if the event is added successfully or there is a parsing error.deadline return book /by 2020-10-01
return book
which is due at Oct 1 2020
. Duke will update you if the deadline is added successfully or there is a parsing error.Removes a task from Duke’s database, according to its index in the database.
delete <index>
Example of usage:
delete 2
Removes the second task that appears in your task list. Duke will update you if the task is deleted successfully or if the index provided is out of the range of tasks shown.
Marks a task in a list, according to its number inside the list.
done <index>
Sample usage:
done 1
Marks the first task as done. Duke will update you if the task is marked as done successfully or if the index provided is out of the range of tasks shown.
Lists all tasks with certain keywords in their description.
find <keyword>
Sample usage:
find book
Duke finds and displays all tasks that contains book
in their description.