Duke is a task manager that helps users keep track of their daily tasks. Users can add, edit, delete, and search for tasks using the command-line interface. Duke uses a simple text file to store the tasks. This guide will help you get started.
Before using Duke, please ensure that you have the following:
- Java 11 or later installed on your computer
- The Duke.jar file downloaded on your computer
- Download the Duke.jar file to your computer.
- Open a terminal or command prompt and navigate to the directory where the Duke.jar file is located.
- Run the following command to start Duke:
java -jar Duke.jar 4. If Duke is running properly, you should see a welcome message.
Duke currently supports the following features:
To add a task, type one of the following commands followed by the task description:
- todo: adds a new todo task
- event: adds a new event task
- deadline: adds a new deadline task
For example: todo borrow book event project meeting /from Mon 2pm /to 4pm deadline return book /by Sunday
To list all the tasks currently in Duke, type the command list.
To mark a task as done, type the command mark followed by the task number.
For example: mark 2
To unmark a task as done, type the command unmark followed by the task number.
For example: unmark 2
To delete a task, type the command delete followed by the task number.
For example: delete 2
To find tasks containing a specific keyword, type the command find followed by the keyword.
For example: find groceries
To exit Duke, type the command bye.
- All tasks added to Duke are automatically saved to a file named "Duke.txt" in the same directory as the Duke.jar file.
- If the Duke.txt file already exists, Duke will load the tasks from the file when it starts.
- If an error occurs while Duke is running, an error message will be displayed.