Starter code for the Duke project
Duke is a desktop personal planner for those who prefer to use command line. If you like the freedom of command line, jump to Quick Start to get started. Enjoy!
Java 11 or above installed in your computer.Duke.jar here.Duke.jar at the folder you intend to use as your home folder.java -jar Duke.jar to start the app.Refer to the next section Features for details of each command.
Save/load: Any previous tasks added to this app earlier will be loaded to the app during startup. Conversely, all tasks in the app will be saved when the app is closed.
Words in
UPPER_CASEare the parameters to be supplied by the user.E.g. in
event NAME /at TIME,NAMEandTIMEare parameters which can be replaced to beevent meeting /at 5pm.
/IDENTIFIERsuch as/byand/atmust be supplied to recognise the parameters after them.
Syntax: list
Here are the tasks in your list:
1.[T][✗] borrow book
2.[D][✓] return book (by: Sunday)
3.[E][✗] project meeting (at: Mon 2-4pm)
There are no tasks in your list.
Tip: Try adding a task by typing `todo NAME`
todo NAMEExample:
todo borrow book
Got it. I've added this task:
[T][✗] borrow book
Now you have 1 tasks in the list.
deadline NAME /by TIMEExample:
deadline return book /by Sunday
Got it. I've added this task:
[D][✗] return book (by: Sunday)
Now you have 2 tasks in the list.
event NAME /at TIMEExample:
event project meeting /at Mon 2-4pm
Got it. I've added this task:
[E][✗] project meeting (at: Mon 2-4pm)
Now you have 3 tasks in the list.
done INDEXTick an existing task. Note: a task that is already done will be left unchanged.
Example:
done 2
Nice! I've marked this task as done:
[D][✓] return book (by: Sunday)
This task has already been marked as done!
[D][✓] return book (by: Sunday)
delete INDEXExample:
delete 3
Noted. I've removed this task:
[E][✗] project meeting (at: Mon 2-4pm)
Now you have 2 tasks in the list.
find NAMESearch for all tasks with names that contain the search keyword.
Does not look into any other parameters (e.g. /by, /at).
Example:
find book
Here are the matching tasks in your list:
1.[T][✗] borrow book
2.[D][✓] return book (by: Sunday)
Here are the matching tasks in your list:
No matching tasks found!
byeExit the app and save all tasks in /data/duke.txt
Bye. Hope to see you again soon!