1. Introduction

Duke is a desktop app for managing your tasks. If you prefer to work with a Command Line Interface, this is the app for you! The app provides several feature that allows you to add, track and update your task list with simple and intuitive commands. Duke will automatically save your task list into a local text file found in your Duke folder and load it when you run Duke again, so you don’t have to worry about losing your task list!

Jump to Quick Start to get started. Have fun!

2. Quick Start

  1. Ensure you have Java 11 or above installed in your Computer.

  2. Download the latest duke.jar here.

  3. Double-click the jar file to run the app. Please wait a few seconds for the app to start up.

    User Interface of the Duke App
  4. Type commands in the command box at the bottom of the app and press kbd:[Enter] to execute it.
    eg. typing list and pressing kbd:[Enter] will list all the tasks in the tasks list.

  5. Here are some commands that you can try:

    1. todo read Clean Code by Robert Martin: adds a todo task with the corresponding description.

    2. list: lists all the tasks in the list.

    3. bye: exits the app.

  6. Refer to Features for the full formatting of all commands available.

3. Features

Command Specification

  • Words in UPPER_CASE are to be supplied by you.

    • e.g. in todo DESCRIPTION, DESCRIPTION should be replaced with the description of the todo task you want to add, such as todo water plants.

  • Words in square brackets are optional.

    • e.g. update 1 [/description DESCRIPTION] [/datetime DATETIME] can be used as update 1 /description read book or update 1 /description read book /datetime 12/12/2019 0900.

  • Parameters can be given in any order.

    • e.g. update 1 /description read book or update 1 /description read book /datetime 12/12/2019 0900 both results in the same command.

  • All INDEX parameters in the command format refers to the index number of the task as shown in the displayed task list.

    • i.e. the index is a positive integer, starting from 1.

3.1. Listing all tasks

Shows the list of tasks saved in the Duke app.

Format: list

3.2. Adding a new task

Creates a new task and adds it in the task list.
Duke enables you to create 3 types of tasks: todo, event, and deadline.
All tasks require a description to be attached to it.
A 24hr date time format is required for the event and deadline tasks.

Format:

  • todo DESCRIPTION

  • deadline DESCRIPTION /by DD/MM/YY HHMM

  • event DESCRIPTION /at DD/MM/YY HHMM

Examples:

  • todo read book
    Creates a read book todo task.

  • event book fest /at 1/1/2019 0800
    Creates a book fest event held at 1/1/2019 0800.

  • deadline finish reflection /by 2/2/2019 0800
    Creates a finish reflection deadline, with the deadline at 2/2/2019 0800.

3.3. Marking a task as done

Marks a task, given by its index, as done.

Format: done INDEX

Example:

  • done 1
    Marks the first task in the task list as done.

3.4. Finding a task by keyword

Searches for task(s) whose description contains the keyword.

  • You can query only 1 keyword.

  • Keyword is not case-sensitive.

  • The keywords ordering do not matter.

    • eg. find plant book and find book plant returns the same matching tasks.

  • Only the description of the tasks will be searched.

    • i.e. you cannot search a task by its datetime field.

Format: find KEYWORD.

Example:

  • find book
    Displays all tasks with book in their description.

3.5. Updating a task

Updates the description and/or datetime field of a task, given by its index.
A minimum of one field must be updated for the command to be valid.

Format: update INDEX [/description DESCRIPTION] [/datetime DATETIME]

Examples:

  • update 1 /description read book /datetime 12/12/2019 0900
    Updates task at index 1, such that its description field is changed to read book and its datetime field is changed to 12/12/2019 0900.

  • update 1 /datetime 12/12/2019 0900
    Updates task at index 1, such that its datetime field is changed to 12/12/2019 0900.

3.6. Cloning a task

Creates a new copy of an existing task, given by its index.
The new task is added to the back of the list.

Format: clone INDEX

Example:

  • clone 1
    Clones the first task in the task list and adds it after the last previous task entry.

3.7. Deleting a task

Deletes an existing task, given by its index, in the list.

Format: delete INDEX

Example:

  • delete 1
    Deletes the first task in the task list.

3.8. Exiting the app

Exits the Duke app.

Format: bye

4. FAQ

Q: Can I transfer my data to another computer?
A: Yes! When you run Duke for the first time, it will create an empty text file to save your tasks list. You can simply overwrite it with your existing data file and Duke will load your tasks list when you run it next time!

5. Command Summary

  • Listing all tasks: list

  • Adding a task

    • todo DESCRIPTION

    • deadline DESCRIPTION /by DD/MM/YY HHMM

    • event DESCRIPTION /at DD/MM/YY HHMM

  • Marking a task as done: done INDEX

  • Finding a task: find KEYWORD

  • Updating a task: update INDEX [/description DESCRIPTION] [/datetime DATETIME]

  • Cloning a task: clone INDEX

  • Deleting a task: delete INDEX

  • Exiting the app: bye