File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,18 @@ These are the specs for this week's assignment:
19
19
- There should be a "help" section that lists all the commands for how to use the app
20
20
21
21
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
28
34
29
35
## Reading material
30
36
You can’t perform that action at this time.
0 commit comments