C-3PO is a droid for human cyborg relations.
C-3PO can add different types of tasks to your task list, including:
Todo
tasks that have a description for the task;Event
tasks that have a description, and a date when the events happen.Deadline
tasks that have a description and a due date.
C-3PO can understand date representation of the format YYYY-MM-DD
and
compare multiple dates based on this feature. For date and time which cannot
be understood by C-3PO, a raw string is used to store the date and time.
C-3PO can mark tasks as done and display the task status in a list.
C-3PO is able to list all existing tasks.
C-3PO can delete existing tasks from the task list.
C-3PO can sort tasks by:
- Name: in alphabetical order, from A to Z;
- Kind:
Deadline
comes beforeEvent
beforeTodo
; - Date: later understandable dates come before earlier dates, followed by string
dates (
Deadline
beforeEvent
), and finally followed byTodo
tasks.
C-3PO will store the data into local storage automatically after each operation. Every time when C-3PO starts, it automatically reads the local storage and loads previous data from it.
list
command can list all the added tasks stored in the local database.
list
todo
command can add a new todo task to the task list.
todo DESCRIPTION
deadline
command add a new deadline task to the task list.
deadline DESCRIPTION /by DATE
DATE
can be a string or in the format of YYYY-MM-DD
. For the latter format, C-3PO will be able to understand the due date, while for the former format, C-3PO will directly save the date as a raw string.
event
command add a new deadline task to the task list.
event DESCRIPTION /at DATE
DATE
can be a string or in the format of YYYY-MM-DD
. For the latter format, C-3PO will be able to understand the date, while for the former format, C-3PO will directly save the date as a raw string.
done
command marks a task as done.
done INDEX
For a non-empty task list with n
tasks, INDEX
must be in the range of 1 to n
(inclusive).
delete
command deletes a task from the list.
delete INDEX
For a non-empty task list with n
tasks, INDEX
must be in the range of 1 to n
(inclusive).
find
command searches for tasks with a specified keyword and prints a list of all searched tasks.
find KEYWORDS
sort
command sorts the task list by their kinds, names or dates.
sort /by COMPARATOR
COMPARATOR
can only be date
, name
or kind
.
bye
command shuts down the chat bot and exits in two seconds.
bye