BobChungus is a command-line based application intended as a Task Management System. It aims to help users manage their active tasks in the form of todos, deadlines and events.
-
Words in UPPER_CASE are the parameters to be supplied by the user. e.g. in TASK_DESCRIPTION is a parameter which can be replaced with the description of the task to be added
-
Parameters must be in the specified order. e.g. if the command specifies TASK_DESCRIPTION followed by TASK_DATE, TASK_DATE followed by TASK_DESCRIPTION is NOT acceptable and will cause issues.
-
Extraneous parameters for commands that do not take in parameters (such as list and bye) will cause errors. e.g. if the command specifies bye 123, it will be create an error.
-
If you are using a PDF version of this document, be careful when copying and pasting commands that span multiple lines as space characters surrounding line-breaks may be omitted when copied over to the application.
Description: Exits the program. Saves all Tasks within TaskList before exitting.
- Use Case: When the user is done, they can type
byeto exit the program. - Format:
bye
Description: Displays the list of tasks.
- Use Case: When the user wants to view all tasks in their list.
- Format:
list
Description: Adds a new to-do task.
- Use Case: The user provides a description for the to-do task.
- Arguments: Task description (e.g.,
todo Buy groceries) - Format:
todo TASK_DESCRIPTION
Description: Adds a new deadline task.
- Use Case: The user provides a task description and a deadline date.
- Arguments: Task description followed by
/byand the deadline date (e.g.,deadline Finish assignment /by 15-03-2025). - Format:
deadline TASK_DESCRIPTION /by DD-MM-YYYY
Description: Adds a new event task.
- Use Case: The user provides an event description and start and end date.
- Arguments: Event description followed by
/from(start date) and/to(end date) (e.g.,event Conference /from 20-03-2025 /to 22-03-2025). - Format:
event TASK_DESCRIPTION /from TASK_START_DATE(dd-MM-yyyy) /to TASK_END_DATE(dd-MM-yyyy)
Description: Deletes a task by index.
- Use Case: The user provides the index of the task to be deleted.
- Arguments: Task index (e.g.,
delete 2to delete the second task in the list). - Format:
delete TASK_INDEX
Description: Marks a task as completed.
- Use Case: The user provides the index of the task to mark as done.
- Arguments: Task index (e.g.,
mark 3to mark the third task as done). - Format:
mark TASK_INDEX
Description: Marks a task as not completed.
- Use Case: The user provides the index of the task to mark as not done.
- Arguments: Task index (e.g.,
unmark 1to unmark the first task). - Format:
unmark TASK_INDEX
Description: Finds tasks with a specific keyword in their description.
- Use Case: The user provides a keyword to search for in the task descriptions.
- Arguments: Keyword to search for (e.g.,
find meeting). - Format:
find TASK_DESCRIPTION
BobChungus' TaskList data is saved in the hard disk automatically after exiting with the bye command.
There is no need to save manually.
BobChungus' TaskList Data is automatically saved as a .txt file at [JAR file location]/data/userTasks.txt. Advanced users are welcome to update data directly by editing that data file.
Furthermore, certain edits can cause BobChungus to behave in unexpected ways (e.g., if a value entered is outside of the acceptable range). Therefore, edit the data file only if you are confident that you can update it correctly.
| Command | Description | Arguments | Format |
|---|---|---|---|
bye |
Exits the program | None | bye |
list |
Lists all tasks | None | list |
todo |
Adds a to-do task | Task description | todo Buy groceries |
deadline |
Adds a deadline task | Task description /by date | deadline Submit report /by 18-03-2025 |
event |
Adds an event task | Event description /from date /to date | event Conference /from 20-03-2025 /to 22-03-2025 |
delete |
Deletes a task by index | Task index | delete 2 |
mark |
Marks a task as completed | Task index | mark 3 |
unmark |
Marks a task as not completed | Task index | unmark 1 |
find |
Finds tasks by keyword in the description | Search keyword | find meeting |
- If you enter a command that is not recognized, the program will throw an exception and display an error message indicating that the command is invalid.
- The program will throw an exception (
MissingTodoArgumentException,MissingDeadlineArgumentException, etc.) and inform you that you are missing required arguments.
- All dates should be in the format
dd-MM-yyyy, for Format, example15-03-2025.
- The commands are case-insensitive, meaning you can type commands in any letter case (e.g.,
todo,TODO,ToDo). - Ensure that the date format for commands like
deadlineandeventis strictly followed (dd-MM-yyyy). - You can modify the task list and storage handling by editing the
TaskListandStorageclasses.
- Date parsing errors: If a date is not in the correct format (
dd-MM-yyyy), aDateTimeParseExceptionwill be thrown. - Index errors: Deleting or marking tasks by index requires the index to be valid; otherwise, an exception may occur if the user enters an invalid index.