Duke is an Graphical User Interface (GUI) application that focuses on helping the user manage his tasks.
These tasks could be a simple todo, a deadline, or an event occuring at a specific point of time.
Duke is tailored for users who love to use command line input and type fast, as most operations require typing something out.
List
- Lists the task listPrints the numbered task list to the GUI, showing its done status, timing, description, and other relevant info.
Format: list (no arguments)
Example of usage: list
Expected outcome:
Todo
- Adds a todo taskAdds a todo task to the task list
Format: todo (Description)
Example of usage:
todo Get a haircut
Expected outcome:
Deadline
- Adds a deadline taskAdds a deadline task to the task list
Format: deadline (Description) /by (Timing)
d/m/yyyy HHmm
where :
d
is the the calendar day of the month ( 1 or 2 digit )m
is the calendar month of the year ( 1 or 2 digit )yyyy
is the 4 digit year of the eraExample of usage:
deadline Claim warranty for iphone /by 30/12/2019 2359
Expected outcome:
Event
- Adds a event taskAdds a event task to the task list
Format: deadline (description) /by (TimingStart) to (TimingEnd)
d/m/yyyy HHmm
where :
d
is the the calendar day of the month ( 1 or 2 digit )m
is the calendar month of the year ( 1 or 2 digit )yyyy
is the 4 digit year of the eraHHmm
for events that start and end on the same day.Examples of usage:
event Software Engineering Lecture /at 08/01/2019 1200 to 09/01/2019 1400
event Software Engineering Lecture /at 08/01/2019 1200 to 1400
Expected outcome:
Done
- Marks a task as doneMarks an task as done in the task list.
Format: done (Number)
list
commandExamples of usage:
done 3
Expected outcome:
Delete
- Remove a task from the task listRemoves a task from the task list. The operation is final!
Format: delete (Number)
list
commandExamples of usage:
delete 5
Expected outcome:
Find
- Search for a task quicklySearches the task list’s tasks’ descriptions, filtering through the matching tasks that contain the search term.
Format: find (Search term)
Examples of usage:
find meeting
Expected outcome:
Archive
- Archives and wipes the task listArchives the current task list to disk, creating an archive directory in the directory of the application if not present near ( 5 directories upward ) the location of the application.
It then wipes the task list, allowing starting from an empty task list.
Format: archive
Expected outcome:
Bye
- Exits the prograrmShows a goodbye message then exits Duke after a brief delay.
Note that you can always use the standard gui close button to exit Duke!
Format: bye
Expected outcome:
taskData.txt
.event CS2103T Lecture /at 20/9/2019 1600 to 1800
and is not marked as done would be stored as { type: event, done: false, description: CS2103T Lecture, time: 20/9/2019 1600 to 1800 }
inside the storage filetodo
, deadline
, or event
true
or false