Starter code for the Duke project
Duke is for those who prefer to use a desktop app to manage tasks. More importantly, Duke is optimized for those who prefer to work with a Command Line Interface (CLI). It includes features that help with making a list of tasks and searching tasks with keywords.
Install Java 11
or above and download most updated version of Individual_Project.jar
from sliu107 GitHub repository
UPPER_CASE
are the parameters to be supplied by the user
e.g todo d/DESCRIPTION
DESCRIPTION
is a parameter which can be used as todo d/borrow some books
deadline d/DESCRIPTION /b/BY
, deadline b/BY /d/Description
is not acceptable.Shows help message which includes examples of every kind of command.
Format: help
Adds a new todo task to Duke
Format: todo d/DESCRIPTION
Example: todo d/borrow some book
Adds a todo task with description borrow some book
Adds a new deadline task to Duke
Format: deadline d/DESCRIPTION /b/BY
where b/BY
has a format: by YYYY-MM-DDTHH:MM:SS
Example: deadline d/return book /b/by 2020-03-02T11:00:00
Adds a task with description return book
and deadline 2020/03/02 11:00:00
Adds a new event to Duke
Format: event d/DESCRIPTION /a/AT
where a/AT
has a format: at YYYY-MM-DDTHH:MM:SS
Example: event d/group meeting /a/at 2020-03-02T14:00:00
Adds an event with description group meeting
and start time 2020/03/02 14:00:00
Shows a list of tasks in the Duke.
Format: list
Marks an existing task in the Duke as done.
Format: done i/INDEX
Example: done 2
Marks the second task in the list as done.
Finds tasks by searching keywords.
Format: find k/KEYWORDS
Example: find k/book
Finds out the task with book
in its description.
Prints out all the tasks that occurs on a specific date.
Format: show d/DATA
where d/DATA
has a format YYYY-MM-DD
Example: show 2020-03-04
Prints out all the tasks that occurs on 2020/03/04.
Deletes an existing task from Duke.
Format: delete i/INDEX
Example: delete 1
Deletes the first task in the Duke.
Exits the program.
Format: bye
Duke will save the data in the hard disk automatically every time before your exit the program. There is no need to save manually.
help
- Giving help messagePrints out examples of commands to help user familiar the format of commands.
Example of usage:
help
Expected outcome:
------------***------------
There are 10 types of commands;todo, deadline, event, list, find, show, done, delete, help and exit
Followings are examples of commands:
todo : todo borrow books
deadline : deadline return books /by 2020-03-02T11:00:00
event : event group meeting /at 2020-03-03T14:00:00
list: list
find: find books
show : show 2020-03-02
done : done 2
delete : delete 1
help : help
exit : bye
------------***------------
todo
- Adding a todo taskAdds a new todo task to Duke
Example of usage:
todo borrow some books
Expected outcome:
------------***------------
Got it. I've added this task:
[T] [✘] borrow some books
Now you have 1 tasks in the list.
------------***------------
deadline
- Adding a deadline taskAdds a new deadline task to Duke
Example of usage:
deadline return books /by 2020-03-02T11:00:00
Expected outcome:
------------***------------
Got it. I've added this task:
[D] [✘] return books (by: Mar. 2, 2020, 11:00:00 a.m.)
Now you have 2 tasks in the list.
------------***------------
event
- Adding an event taskAdds a new event task to Duke
Example of usage:
event group meeting /at 2020-03-03T14:00:00
Expected outcome:
------------***------------
Got it. I've added this task:
[E] [✘] group meeting (at: Mar. 3, 2020, 2:00:00 p.m.)
Now you have 3 tasks in the list.
------------***------------
list
- Listing all the tasksPrints out a list of tasks with details.
Example of usage:
list
Expected outcome:
------------***------------
Here are the tasks in your list:
1. [T] [✘] borrow some book
2. [D] [✘] return books (by: Mar. 2, 2020, 11:00:00 a.m.)
3. [E] [✘] group meeting (at: Mar. 3, 2020, 2:00:00 p.m.)
------------***------------
done
- Done a taskMark a specific task as done.
Example of usage:
done 2
Expected outcome:
------------***------------
Nice! I've marked this task as done:
[✓] return books
------------***------------
find
- Finding a taskSearches for tasks with keywords and shows a list of tasks whose description contains the keyword.
Example of usage:
find book
Expected outcome:
------------***------------
Here are the matching tasks in your list:
1. [T] [✘] borrow some book
2. [D] [✓] return books (by: Mar. 2, 2020, 11:00:00 a.m.)
------------***------------
show
-Printing tasks due or occur on a datePrints out a list of tasks that due or occur on a specific dates with detailed information.
Example of usage:
show 2020-03-02
Expected outcome:
------------***------------
[D] [✓] return books (by: Mar. 2, 2020, 11:00:00 a.m.)
------------***------------
delete
-Deleting a taskDeleting a taskDeletes an existing task from Duke.
Example of usage:
delete 2
Expected outcome:
------------***------------
Noted. I've removed this task:
[D] [✓] return books (by: Mar. 2, 2020, 11:00:00 a.m.)
Now you have 2 tasks in the list.
------------***------------
bye
-Exiting the programSaves the changes of the task list to local file before exiting the program and shows exit messages.
Example of usage:
bye
Expected outcome:
------------***------------
Bye. Hope to see you again soon!
------------***------------