todoAdds a simple task with a short description.
Format: todo [task description]
Examples:
todo borrow booktodo sleepeventAdds an event.
Format: event [event description] /at [date] [time]
Examples:
event go to book fair /at 2020-09-09 20:58event go go to an event /at 2020-09-09 20:00deadlineAdds a task with a deadline.
Format: deadline [deadline description] /by [date] [time]
Example:
deadline return book /by 2020-09-09 23:59deadline submit my ip /by 2020-09-18 23:59listReads all the saved tasks in the list.
Format: list
deleteDeletes an existing task in the task list.
Format: delete INDEX
INDEX. The index refers to the index number shown in the displayed task list.
The index must be a positive integer.Example:
delete 1 - deletes the task at index 1 of the task list.delete 4 - deletes the task at index 4 of the task list.findFind tasks which contains any of the keyword.
Format: find KEYWORD
Examples:
find book - will return all task that has the keyword book.find borrow book - will return all the task that has the keywords borrow and book.update taskReplaces an existing task in the task list with another task.
Format: update task INDEX
INDEX. The index refers to the index number shown in the displayed task list.
The index must be a positive integer.Example:
update task 1 - updates task at index 1.update task 4 - updates task at index 4.update descUpdates the description of an existing task in the task list.
Format: update desc INDEX
INDEX. The index refers to the index number shown in the displayed task list.
The index must be a positive integer.Examples:
update desc 1 - updates the description of the task at index 1.update desc 4 - updates the description of the task at index 4.update timeUpdates the time of an existing event or task with a deadline in the task list.
Format: update time INDEX
INDEX. The index refers to the index number shown in the displayed task list.
The index must be a positive integer.Examples:
update time 1 - updates the time of the task at index 1.update time 4 - updates the time of the task at index 4.update dateUpdates the date of an existing event or task with a deadline in the task list.
Format: update date INDEX
INDEX. The index refers to the index number shown in the displayed task list.
The index must be a positive integer.Examples:
update date 1 - updates the date of the task at index 1.update date 4 - updates the date of the task at index 4.byeExits the program and saves all the changes made to task list.
Format: bye