Manchester| 26-SDC-Jun | Fithi Teklom | Sprint 3 | Implement-shell-tools - #613
Manchester| 26-SDC-Jun | Fithi Teklom | Sprint 3 | Implement-shell-tools#613Fithi-Teklom wants to merge 8 commits into
Conversation
LonMcGregor
left a comment
There was a problem hiding this comment.
Good start but there is quite a bit of work still to do.
You've built your own argument handling system. Is your way of handling options/arguments always going to be the best? Is there a better way of doing this?
| } | ||
|
|
||
| if (mode === "onePerLine") { | ||
| items.forEach(item => console.log(item)); |
There was a problem hiding this comment.
Do you need to use a complete anonymous function here?
| total.words += stats.words; | ||
| total.bytes += stats.bytes; | ||
|
|
||
| printResult(stats, file); |
There was a problem hiding this comment.
When printing multiple files, is the output neatly formatted? Could it be improved?
LonMcGregor
left a comment
There was a problem hiding this comment.
Have you tested these changes before comitting? I get errors when I try to run the code
|
OK. This looks good now. Apologies for the delayed review. I would recommend trying this again making use of an argument parsing library, as that can simplify code a lot, but this meets the requirements as is. |
Self checklist
Changelist
Implement shell tools using js program that matches the listed commands.
Task ID: CYF-1150