Starter code for the Duke project
This application serves as a personal task manager for users who prefer typing.
cd
into the home folder of Duke, and run java -jar duke-0.2.1.jar
help
- Opening GuideDisplays all supported commands and their usage.
Format: help
list
- Listing all saved tasksDisplays all saved tasks in the application.
Format: list
todo
- Adding a new to-doAdds a new Todo
task with the specified description. The task will be marked as ‘✗’ (undone) by default.
Format: todo DESCRIPTION
Example: todo ST2132 Homework
Expected outcome: The application successfully adds a Todo
with description ST2132 Homework
Got it dude! I've added this task:
[T][✘] ST2132 Homework
Now you have 5 task(s) in the list.
Remark: Tasks with the same description
will be considered as duplicate and will not be allowed.
event
- Adding a new eventAdds a new Event
task with the specified description and date and time. The task will be marked as ‘✗’ (undone) by default.
Format: event DESCRIPTION /at YYYY-MM-DD HHMM
Example: event project meeting /at 2020-02-21 1800
Expected outcome: The application successfully adds an Event
with description project meeting
and time 21 Feb 2020 18:00
Got it dude! I've added this task:
[E][✘] project meeting (at: 21 Feb 2020 18:00)
Now you have 5 task(s) in the list.
deadline
- Add a new deadline.Adds a new Deadline
task with the specified description and deadline date and time.
The task will be marked as ‘✗’ (undone) by default.
Format: deadline DESCRIPTION /by YYYY-MM-DD HHMM
Example: deadline CS2102 Assignment /by 2020-02-21 1800
Expected outcome:
The application successfully added a Deadline
with description Cs2102 Assignment
and deadline date and time 21 Feb 2020 18:00
Got it dude! I've added this task:
[D][✘] CS2102 Assignment (by: 21 Feb 2020 18:00)
Now you have 5 task(s) in the list.
delete
- Deleting a taskDeletes a Task
at the specified index in the full task list. The index must be a positive integer and must exists within the range of the list length.
Format: delete INDEX
Example: delete 2
Expected outcome: The application successfully deleted a Task
at index 2 of the current list.
Got it dude! I've deleted this task:
[E][✘] project meeting (at: 21 Feb 2020 18:00)
Now you have 4 task(s) in the list.
done
- Marking a task as doneMarks a Task
at the specified index in the list as done
. The index must be a positive integer and must exists within the range of the list length.
Format: done INDEX
Example of usage: done 2
Expected outcome:
The application successfully marked the Task
at index 2 of the current list as done
.
Got it dude! I've marked this task as done:
[T][✓] ST2132 Homework
find
- Finding taskFind all tasks whose description contains the specified keyword and return a list of those tasks. (The list could be empty if there is no task that matches the keyword).
Format: find [KEYWORD]
Example: find Homework
Expected outcome:
The application found some tasks whose description contains the keyword Homework
, and return a list of those tasks.
Okay dude here are what I found:
2. [T][✓] ST2132 Homework
If no task contains the keyword, this message will be returned instead:
Sorry dude but I found nothing :(
There is no need to save the data, as they are auto-saved.
bye
- ExitingExits the program.