Duke project

This is a project named after the Java mascot Duke. Given below are instructions on how to use the interactive Duke bot.

User Guide

Setting up in Intellij

Prerequisites: JDK 11, update Intellij to the most recent version.

  1. Open Intellij (if you are not in the welcome screen, click File > Close Project to close the existing project first)
  2. Open the project into Intellij as follows:
    1. Click Open.
    2. Select the project directory, and click OK.
    3. If there are any further prompts, accept the defaults.
  3. Configure the project to use JDK 11 (not other versions) as explained in here.
  4. After that, locate the src/main/java/Launcher.java file, right-click it, and choose Run Launcher.main().
  5. Refer to the Features below for details of each command.

Features

NOTE: Words in UPPER_CASE are the parameters to be supplied by the user.

Adding a task:

 

Adding a ToDo task: todo

Adds a new ToDo task to the Duke’s tasklist.

Format: todo CONTENT

Examples:

 

Adding a Deadline task: deadline

Adds a new Deadline task to the Duke’s tasklist.

Format: deadline CONTENT /by DATE_AND_TIME

Examples:

 

Adding an Event task: event

Adds a new Event task to the Duke’s tasklist.

Format: event CONTENT /at DATE_AND_TIME

Examples:

 

Listing all tasks: list

Shows a list of all tasks in the Duke’s tasklist.

Format: list

 

Marking a task as done: done

Marks an existing task in the Duke’s tasklist as done.

Format: done INDEX

Examples:

 

Deleting a task: delete

Deletes an existing task from the Duke’s tasklist.

Format: delete INDEX

Examples:

 

Finding a task by content: find

Finds tasks with contents that contain the given keyword/s.

Format: find KEYWORD OR KEYWORDS

Examples:

 

Editing a task: edit

 

Editing a task’s content: edit_content

Edits an existing task’s content in the Duke’s tasklist.

Format: edit INDEX content NEW_CONTENT

Examples:

 

Editing a task’s date and time: edit_datetime

Edits an existing task’s date and time in the Duke’s tasklist.

Format: edit INDEX datetime NEW_DATETIME

Examples:

 

Exiting the program: bye

Saves the tasklist’s changes to the file at relative filepath /data/duke.txt.

Format: bye

  ##Command Summary

Action Format, Examples
Add ToDo Task
todo CONTENT </br> e.g. todo hello </br> </br> Deadline Task </br> deadline CONTENT /by DATE_AND_TIME </br> e.g. deadline read book /by 12/12/2020 18:30 </br></br> Event Task </br> event CONTENT /at DATE_AND_TIME </br> e.g. event go for meeting /at 12/10/2020 18:00
List list
Done done INDEX
e.g. done 3
Delete delete INDEX
e.g. delete 1
Find find KEYWORD OR KEYWORDS
e.g. find read
Edit Edit content
edit INDEX content NEW_CONTENT
e.g. edit 1 content read new book

Edit date and time
edit INDEX datetime NEW_DATETIME
e.g. edit 2 datetime 12/12/2020 18:30
Exit bye