Skip to content

NW|26-JUI-SDC|Ahmad Hmedan|Sprint 3 |Implement-shell-tools-JS - #599

Open
AhmadHmedann wants to merge 10 commits into
CodeYourFuture:mainfrom
AhmadHmedann:Implement-shell-tools
Open

NW|26-JUI-SDC|Ahmad Hmedan|Sprint 3 |Implement-shell-tools-JS #599
AhmadHmedann wants to merge 10 commits into
CodeYourFuture:mainfrom
AhmadHmedann:Implement-shell-tools

Conversation

@AhmadHmedann

@AhmadHmedannAhmadHmedann commented Jul 23, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Implement cat, ls, and wc CLI

Task ID: CYF-1150

@AhmadHmedannAhmadHmedann added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 23, 2026
Continue processing remaining files after an error.
Set the process exit code to 1 if any file fails.
Count zero words for empty files.
@AhmadHmedannAhmadHmedann added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jul 26, 2026
@LonMcGregorLonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 4, 2026

@LonMcGregorLonMcGregor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start but there is quite a bit of work still to do.

.name("ls ")
.description("ls implementation")
.argument("[path]", "The path to process") //zero or one path
.option("-1, --one-per-line", "one file per line")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the -1 option do?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. If the user adds the -1 flag, it doesn't throw an error, but in my code it doesn't have any effect.

Comment threadimplement-shell-tools/wc/wc.mjs
Comment threadimplement-shell-tools/cat/cat.mjs
@LonMcGregorLonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 4, 2026
@AhmadHmedannAhmadHmedann added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 4, 2026

@LonMcGregorLonMcGregor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@LonMcGregorLonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 5, 2026
@AhmadHmedannAhmadHmedann added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 5, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs ReviewTrainee to add when requesting review. PRs without this label will not be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@AhmadHmedann@LonMcGregor