properties:
Title: indicates the title of entry, ( required)
Example
node index.js add “To do entry”
Notes:
The entry contain an incremental id
- All entries:
node index.js list
- Make individual edits
properties:
title: for editing title (required)
id : id (required)
Examples
node index.js edit 123 “Edited title”
===> will edit entry with id 123 to be “Edited title”
Example
node index.js delete 123
Users can mark their entry as done by id
Added properties :
Status: one of the values [“to-do”,”in progress”,”done”]
Examples:
node index.js edit 123 “Edited title” “done”
- Specific status
properties:
status: one of the values [“to-do”, “in progress” ,”done”] (optional parameter)
Example:
node index.js list “done”
This list all entries that have status done only.