Duke is a command line interface (CLI) application to track different types of tasks that the user adds. If you can type fast, Duke can get do task management faster than traditional Graphical User Interface (GUI) apps.
java -jar Duke.jar
Hello! I'm Duke
What can I do for you? Enter help to view commands.
help
Shows available commands of the app.
Format: help
Expected Output:
todo <description> - Add new todo task
deadline <description> /by <dd/mm/yy and time> - Add new deadline task
event <description> /at <dd/mm/yy and time> - Add new event task
list - List all tasks
done <index> - Mark task number _ as done
delete <index> - Delete task number _
find <keyword> - Search for task with keyword in description
exit - Save tasks list and exit program
todo
Add a Todo task to the task list.
Format: todo <description>
Example: todo edit ip
Expected Output:
Got it. I've added this task:
[T][ ] edit ip
Now you have 1 tasks in the list.
deadline
Add a Deadline task to the task list.
Format: deadline <Task Description> /by <dd/mm/yyyy and time>
Example: deadline complete ip /by 23/02/2021 2359
Expected Output:
Got it. I've added this task:
[D][ ] complete ip (by: 23/02/2021 2359)
Now you have 2 tasks in the list.
Event
Add an Event task to the task list.
Format: event <Task Description> /at <dd/mm/yy and time>
Example: event Liverpool v Sheffield Utd /at 01/03/2021 0315
Expected Output:
Got it. I've added this task:
[E][ ] Liverpool v Sheffield Utd (at: 01/03/2021 0315)
Now you have 3 tasks in the list.
list
List all the tasks in the task list.
Format: list
Expected Output:
Here are the tasks in your list:
1.[T][ ] edit ip
2.[D][ ] complete ip (by: 23/02/2021 2359)
3.[E][ ] Liverpool v Sheffield Utd (at: 01/03/2021 0315)
done
Mark task number _ as done.
Format: done <index>
Example: done 2
Expected Output:
Nice! I've marked this task as done:
[D][X] complete ip (by: 23/02/2021 2359)
delete
Delete task number _ from task list.
Format: delete <index>
Example: delete 2
Expected Output:
Noted. I've removed this task:
[D][X] complete ip (by: 23/02/2021 2359)
Now you have 2 tasks in the list.
find
Search all the tasks with the keyword found in the task description. The keyword is case-sensitive.
Format: find <keyword>
Example: find Liverpool
Expected Output:
Here are the matching tasks in your list:
1.[E][ ] Liverpool v Sheffield Utd (at: 01/03/2021 0315)
exit
Exit the app.
Format: exit
Expected Output:
File saved.
Bye. Hope to see you again soon!
Duke save files are automatically updated or created when there is no existing save file
when exit
command is entered. There is no need to save manually. Save files are also loaded on start up
of the application if it exists.
Q1: Where is the save file stored or created after I exit the program?
Save file
duke.txt
is stored in the directory you ran the app in.
Command | Format | Example |
---|---|---|
todo | todo <description> |
todo edit ip |
deadline | deadline <description> /by <dd/mm/yyyy and time> |
deadline complete ip /by 23/02/2021 2359 |
event | event <description> /at <dd/mm/yyyy and time> |
event Liverpool v Sheffield Utd /at 01/03/2021 0315 |
list | list |
list |
done | done <index> |
done 2 |
delete | delete <index> |
delete 2 |
find | find <keyword> |
find mushroom |
exit | exit |
exit |