Duke is a task management application, which is designed for users who prefer to work with a Command Line Interface (CLI) to manage their tasks efficiently.
java -jar ip.jar
Command word is case-sensitive e.g. todo cannot be entered as TODO.
todoAdd a todo task to the task list
Format: todo <Task Description>
Example
todo return books
Expected outcome:
Got it. I've added this task:
[T][✘] return books
eventAdd a event task to the task list
Format: event <Task Description> /at <Date>
This supports date input of multiple format.
If the input is not in the listed formats, the exact user input will be not be recognised as a valid date and the code will print “null” instead of the exact user input.
Example 1
event CS2113 tutorial /at 2020 02 02
Expected outcome:
Got it. I've added this task:
[E][✘] CS2113 tutorial (at: 2020-02-02)
Example 2
event CS2113 quiz /at Monday
Expected outcome:
Got it. I've added this task:
[E][✘] CS2113 quiz (at: Monday)
deadlineAdd a deadline task to the task list
Format: deadline <Task Description> /by <Date>
This supports date input of multiple format.
If the input is not in the listed formats, the exact user input will be not be recognised as a valid date and the code will print “null” instead of the exact user input.
Example
deadline IP submission /by 20190302
Expected outcome:
Got it. I've added this task:
[D][✘] IP submission (by: 2019-03-02)
Example
deadline go out to eat /by today
Expected outcome:
Got it. I've added this task:
[D][✘] go out to eat (by: today)
listDisplay all the task.
Format: list
Example
Expected outcome:
doneMark a task as done.
Format: done <index>
The index corresponds to the index of the task when they are displayed in the list command. If the index falls out of the range, no action will be performed.
Example
done 1
Expected outcome:
Nice! I've marked this task as done:
[T][✓] return books
deleteDelete a task.
Format: delete <index>
The index corresponds to the index of the task when they are displayed in the list command. If the index falls out of the range, no action will be performed.
Example
delete 1
Expected outcome:
Got it. I've removed this task:
[T][✓] return books
findFind all tasks with description that contains the query key word.
Format: find <key word>
Example
find tutorial
Expected outcome:
1. [E][✘] CS2113 tutorial (at: 2020-02-02)
byeExit the program.
Example
Expected outcome:
Bye. Hope to see you again soon! ```
1) Here are all 3 valid formats.
`yyyyMMdd`
`yyyy-MM-dd`
`yyyy MM dd`
2) For windows machine, need to configure the terminal to get the “✓” instead of the “?”.
type "chcp 65001"in your cmd
then try run jar by: "java -Dfile.encoding=UTF-8 -jar ip.jar"