duke.jar from here.cd into the folder you put the .jar file in, and run java -jar duke.jarlistLists all tasks in the task list.
Format: list
Example usage:
list
Expected outcome:
All tasks in the task list are shown.
Here are the tasks in your list:
1. [T][X] buy milk
2. [D][ ] assignment (by 2023-09-20T23:59)
3. [E][ ] meeting (from 2023-09-20T14:00 to 2023-09-20T16:00)
You have 3 tasks in your list.
todoAdds a new Todo to the task list.
Format: todo <DESCRIPTION>
Example usage:
todo buy milk
Expected outcome:
A new Todo is added to the task list.
Got it. I've added this task:
[T][ ] buy milk
Now you have 1 task in your list.
deadlineAdds a new deadline to the task list.
Format: deadline <DESCRIPTION> /by <DUE_DATE>
Example usage:
deadline assignment /by 2023-09-20T23:59
Expected outcome:
A new Deadline is added to the task list.
Got it. I've added this task:
[D][ ] assignment (by 2023-09-20T23:59)
Now you have 2 tasks in your list.
eventAdds a new event to the task list.
Format: event <DESCRIPTION> /from <START_TIME> /by <END_TIME>
Example usage:
event meeting /from 2023-09-20T14:00 /to 2023-09-20T16:00
Expected outcome:
A new Event is added to the task list.
Got it. I've added this task:
[E][ ] meeting (from 2023-09-20T14:00 to 2023-09-20T16:00)
Now you have 3 tasks in your list.
findFinds a task based on a keyword.
Format: find <KEYWORD>
Example usage:
find milk
Expected outcome:
All tasks whose description contains the keyword are shown.
Here are the matching tasks in your list:
1. [T][ ] buy milk
deleteDeletes a task.
Format: delete <TASK_NUMBER>
Example usage:
delete 1
Expected outcome:
The task with the corresponding task number is deleted.
Noted. I've removed this task:
[T][ ] buy milk
You have 3 tasks in your list.
markMarks a task as done
Format: mark <TASK_NUMBER>
Example usage:
mark 1
Expected outcome:
The task with the corresponding task number is marked as done.
Nice! I've marked this this task as done:
[D][X] meeting (from 2023-09-20T14:00 to 2023-09-20T16:00)
unmarkMarks a task as not done.
Format: unmark <TASK_NUMBER>
Example usage:
unmark 1
Expected outcome:
The task with the corresponding task number is marked as not done.
OK, I've marked this this task as not done yet:
[D][ ] meeting (from 2023-09-20T14:00 to 2023-09-20T16:00)
byeTerminates the program.
Format: bye
Example usage:
bye
Expected outcome:
The program terminates.
| Command | Usage |
|---|---|
list |
list |
todo |
todo <DESCRIPTION> |
deadline |
deadline <DESCRIPTION> /by <DUE_DATE> |
event |
event <DESCRIPTION> /from <START_TIME> /by <END_TIME> |
find |
find <KEYWORD> |
delete |
delete <TASK_NUMBER> |
mark |
mark <TASK_NUMBER> |
unmark |
unmark <TASK_NUMBER> |
bye |
bye |