NW|26-JUI-SDC|Ahmad Hmedan|Sprint 3 |Implement-shell-tools-JS - #599
NW|26-JUI-SDC|Ahmad Hmedan|Sprint 3 |Implement-shell-tools-JS #599AhmadHmedann wants to merge 11 commits into
Conversation
Continue processing remaining files after an error. Set the process exit code to 1 if any file fails. Count zero words for empty files.
LonMcGregor
left a comment
There was a problem hiding this comment.
Good start but there is quite a bit of work still to do.
LonMcGregor
left a comment
There was a problem hiding this comment.
wc has been improved a bit now. Good spot that -1 isn't currently having any effect - can you change your implementation of ls so that -1 has a noticeable effect on the output?
LonMcGregor
left a comment
There was a problem hiding this comment.
Good work, there's just one very minor thing left
| const options = program.opts(); | ||
| try { | ||
| const files = await fs.readdir(path); | ||
| console.log(files) |
There was a problem hiding this comment.
Did you mean to include this console.log here?
There was a problem hiding this comment.
I completely forgot to remove console.log(files). I was using it while working out the approach, and I accidentally left it in.
Remove console log of files before filtering visible files.
LonMcGregor
left a comment
There was a problem hiding this comment.
Don't worry about forgetting that log line - it's an easy mistake to make. It looks good now, good work
Learners, PR Template
Self checklist
Changelist
Implement cat, ls, and wc CLI
Task ID: CYF-1150