Duke

User Guide

Duke is a desktop app for managing tasks, optimized for use via a Command Line Interface (CLI). If you can type fast, Duke can enable task list management faster than traditional GUI apps.

  1. Quick Start
  2. Features
    2.1 Adding a to-do task: todo
    2.2 Adding a deadline: deadline
    2.3 Adding an event: event
    2.4 Listing all tasks: list
    2.5 Marking a task done
    2.6 Deleting a task
    2.7 Finding a task
    2.8 Exiting the program
    2.9 Saving the data
    2.10 Loading the date
    2.11 Editing the data file
  3. Frequently Asked Questions (FAQ)
  4. Command Summary

1. Quick Start

  1. Ensure you have Java 11 or above installed in your Computer.
  2. Download the latest Duke.jar from here.
  3. Copy the file to the folder you want to use as the home folder for your Duke.
  4. For Windows users, pull up your Command Prompt.
    For Mac users, pull up your Terminal.
    Navigate to the directory containing the Duke.jar file.
    i.e. cd FILEPATH, FILEPATH is the address of your file.
  5. Run the Duke.jar file by using the java -jar Duke.jar command.

2. Features

Notes about the command format:

WARNING ❗️: Do not use “|” in the parameter TASKNAME as it would cause errors when loading up the file. Please refer to section 2.11 for a fix if the save file is corrupted.

2.1 Adding a to-do task: todo

Adds a to-do task to the task list.

Format: todo TASKNAME

Examples:

2.2 Adding a deadline: deadline

Adds a task with an associated deadline.

Format: deadline TASKNAME /by DATE

Examples:

2.3 Adding an event: event

Adds an event with a date.

Format: event TASKNAME /at DATE

Examples:

2.4 Listing all tasks: list

Shows a list of all the tasks currently saved in Duke.

Format: list

Examples:

2.5 Marking a task done: done

Marks an existing task in the list as done.

Format: done INDEX

Examples:

2.6 Deleting a task: delete

Deletes an existing task in the list.

Format: delete INDEX

Examples:

2.7 Finding a task: find

Searches for a task and shows a list of the search results with their corresponding index numbers in the original displayed list.

Format: find SEARCH_KEYWORD

Examples:

2.8 Exiting the program: bye

Exits the program.

Format: bye

2.9 Saving the data

Duke data are saved automatically in the hard disk after any commands that modifies data. There is no need to save manually.

2.10 Loading the data

The save file will be loaded automatically if there is an existing one.
Save file will be created automatically if it does not.

Examples:

2.11 Editing the data file

Duke data are saved as a text file [JAR file location]/duke.txt.
Advanced users are welcome to update data directly by editing that data file.

CAUTION ❗️: If your changes to the data file makes its format invalid, you will have to manually delete the duke.txt file for the saving mechanism to work as intended.

3. FAQ

Q: How do I locate my duke.txt folder? I can’t seem to find it.
A: For Windows users, type duke.txt in the search panel and you should be able to find its location. For Mac users, use Spotlight or Finder for the above actions.

4. Command Summary

Action Format, Examples
Add todo todo TASKNAME e.g. todo book bandroom
Add deadline deadline TASKNAME /by DATE e.g. deadline CS2113T Deliverables 2 /by 03-28-2021
Add event event TASKNAME /at DATE e.g. event Valentines Date /at 02-14-2021
List list
Done done INDEX e.g. done 2
Delete delete INDEX e.g. delete 3
Find find SEARCH_KEYWORD e.g. find assignment
Exit bye