Duke is a command-line interface task manager. You can use Duke to manage a list of to-do items, upcoming deadlines, and upcoming events. The list is saved upon exit and will be loaded upon the next session of Duke.
This section describes the features that Duke supports.
NOTE:
UPPER_CASE are the parameters to be supplied by the userNew tasks can be added by typing the command relevant to the type of task that is to be added (i.e. todo,event or deadline).
todotodo NAME_OF_TASKtodo Math Online Quiztodo CS2113 Homeworktodo CS2113 Homework
____________________________________________________________
Got it. I've added this task:
[T][X] CS2113 Homework
Now you have 2 tasks in the list.
____________________________________________________________
eventevent NAME_OF_EVENT /at DATE_OF_EVENTevent Career Fair /at 26-02-2020event Family Gathering /at 26 Febevent Computing Convention /at Next Monthevent Career Fair /at 26-02-2020
____________________________________________________________
Got it. I've added this task:
[E][X] Career Fair (at: 26-02-2020)
Now you have 3 tasks in the list.
____________________________________________________________
deadlinedeadline NAME_OF_DEADLINE /by DATE_OF_DEADLINEdeadline Math Online Quiz /by 26-02-2020deadline English Essay /by 26 Febdeadline CS2113 Homework /by Tomorrowdeadline English Essay /by 26 Feb
____________________________________________________________
Got it. I've added this task:
[D][X] English Essay (by: 26 Feb)
Now you have 4 tasks in the list.
____________________________________________________________
listlistlist
1.[T][O] CS2113 Homework
2.[E][X] Career Fair (at: 26-02-2020)
3.[D][X] English Essay (by: 26 Feb)
findfind KEYWORDfind Mathfind CS2113find CS1.[T][X] CS2113 Homework 2.[D][X] CS2105 Assignment (by: next week) ____________________
## 4. Marking Tasks as Done: ```done```
- Marks specified tasks as done.
- Specified index of the task will be its index of the entire task list by default, unless the ```list``` or ```find``` command has been called. In which case, it will be the index of the item as shown in the last shown list.
- Format: ```done INDEX```
- Examples:
- ```done 1```
- ```done 2```
- Expected Output:
done 1 Nice! I’ve marked this task as done: [O] CS2113 Homework
## 5. Deleting Tasks: ```delete```
- Delete specified tasks from the list.
- Specified index of the task will be its index of the entire task list by default, unless the ```list``` or ```find``` command has been called. In which case, it will be the index of the item as shown in the last shown list.
- Format: ```done INDEX```
- Examples:
- ```delete 1```
- ```delete 2```
- Expected Output:
delete 1 ____________________ Noted. I’ve removed this task: [T][O] CS2113 Homework Now you have 3 tasks in the list. ____________________
## 6. Loading Tasks from File
- Loading of tasks will be done automatically upon starting the application when there is a saved file present in the same directory of the Duke application. The file has the name ```data.txt```.
- Expected Output:
Previous tasks has been loaded successfully: ____________________ 1.[E][X] Career Fair (at: 26-02-2020) 2.[D][X] English Essay (by: 26 Feb) 3.[D][X] CS2105 Assignment (by: next week)
## 7. Saving Tasks: ```bye```
- Saving the state of the task list is done automatically when the program is exited using the ```bye`` command.
- Format: ```bye```
- Expected Output:
bye Bye. Hope to see you again soon! ```