View on GitHub

duke

Starter code for the Duke project

User Guide

Welcome to Hardy’s Duke v0.2. Duke provides a simple way to track your tasks and upcoming events.

Features

Add and Manipulate tasks

Additional

Usage

todo - Adds a new task to your list.

A new task is added to the list. Its name follows what you type following “todo”.

Example of usage:

todo Tomorrow's Homework

Expected outcome:

Got it. I've added this task:
[T][✘] Tomorrow's Homework
Now you have 1 tasks in the list

Note that the number of tasks varies.


deadline - Adds a new deadline to your list.

A new task with a deadline is added to the list. Its name follows what you type following “deadline” and a date yyyy-MM-dd must follow. The name of the deadline and date must be separated bby /by.

Example of usage:

deadline Biology Assignment /by 2020-03-10

Expected outcome:

Got it. I've added this task:
[D][✘] Biology Assignment (by: Mar 10 2020 12.00am)
Now you have 2 tasks in the list

Note that the number of tasks varies.


event - Adds a new event to your list.

A new event with a date and time is added to the list. Its name follows what you type following “event” and a date yyyy-MM-dd must follow. Optionally, include a HH:mm after the date. The name of the event and date must be separated bby /at.

Example of usage:

event Joe Hisaishi with SSO /at 2020-02-22 19:30

Expected outcome:

Got it. I've added this task:
[E][✘] Joe Hisaishi with SSO (at: Feb 22 2020 7.30pm)
Now you have 3 tasks in the list

Note that the number of tasks varies.


list - Displays all tasks in the list.

Example of usage:

list

Example expected outcome:

1.[T][✘] Tomorrow's Homework
2.[D][✘] Biology Assignment (by Mar 10 2020 12.00am)
3.[E][✘] Joe Hisaishi with SSO (at: Feb 22 2020 7.30pm)

Outcome for empty list:

Empty List. You are currently free! Upz lah!


done - Sets a task in the list to ‘done’ status.

The task is set to done. An index based on the numbered list must follow the command.

Example of usage:

done 1

Expected outcome:

Nice! I've marked this task as done:
[T][√] Tomorrow's Homework


delete - Removes a task from the list.

The task specified is removed. An index based on the numbered list must follow the command.

Example of usage:

delete 1

Expected outcome:

Noted! I've removed this task:
[T][√] Tomorrow's Homework
Now you have 2 tasks in the list.


date - Shows all tasks on a certain date.

All tasks, specifically deadline and/or event type tasks, that occur on a date yyyy-MM-dd are displayed.

Example of usage:

date 2020-03-09

Expected outcome:

1.[E][✘] Midterm Assessment (at: Mar 9 2020 9.00am)
2.[D][✘] Science Quiz (by: Mar 9 2020 11.59pm)
You have 2 things happening on: Mar 9 2020


find - Shows all tasks that match a keyword.

All tasks that match a keyword/phrase are displayed. The search term must follow the find command.

Example of usage:

date Assignment

Expected outcome:

1.[D][✘] Biology Assignment (by Mar 10 2020 12.00am)
2.[T][✘] Submit English Assignment
You have 2 matching tasks for keyword: Assignment


undo - Undoes the latest change to the task list.

Undoes the latest change and reverts the task list prior to it.

Example of usage:

undo

Possible Expected outcome after a previous delete command:

Got it. I've added this task:
[E][✘] Joe Hisaishi with SSO (at: Feb 22 2020 7.30pm)
Now you have 5 tasks in the list.

Outcome for no prior changes:

Nothing to undo.


help - Prints all possible user commands.

All commands possible are printed along with some explanations.


bye - Exits the program.