Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d926d11

Browse files
author
Filip Ilievski
authored
Update README.md
1 parent 978b699 commit d926d11

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

week2/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@ These are the specs for this week's assignment:
1919
- There should be a "help" section that lists all the commands for how to use the app
2020

2121
The following commands should be present:
22-
- No command: show help section
23-
- help: show help section
24-
- list: show current todo's, or show an appropriate text if there are no todos
25-
- add: add a todo item. all the words behind "add" are entered as 1 todo item to the list
26-
- remove: remove a todo item by its 1-base index.
27-
- reset: remove all todo items from the list
22+
- No command: show help section (`node index.js`)
23+
- help: show help section (`node index.js help`)
24+
- list: show current todo's, or show an appropriate text if there are no todos (`node index.js list`)
25+
- add: add a todo item. all the words behind "add" are entered as 1 todo item to the list (`node index.js add "Buy groceries"`)
26+
- remove: remove a todo item by its 1-base index. (`node index.js remove 2`)
27+
- reset: remove all todo items from the list (`node index.js reset`)
28+
29+
- *BONUS:* update: update a todo item with new text (`node index.js update 3 "Wash teeth"`)
30+
31+
### Consider this:
32+
- What representation you use in your file (CSV, TSV, JSON, ...)
33+
- Handle edge cases, i.e. control what happens if user enters unexpected input
2834

2935
## Reading material
3036

0 commit comments

Comments
 (0)