Skip to content

London | 26-SDC-July | AYK| Sprint 3 | Implement shell tools - #612

Open
sarawone wants to merge 3 commits into
CodeYourFuture:mainfrom
sarawone:AYK_Shell_tools_implementation
Open

London | 26-SDC-July | AYK| Sprint 3 | Implement shell tools#612
sarawone wants to merge 3 commits into
CodeYourFuture:mainfrom
sarawone:AYK_Shell_tools_implementation

Conversation

@sarawone

@sarawonesarawone commented Jul 27, 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

Kindly check the shell tools implementation with JS.
Please provide guidance and feedback on this.

Thanks and Regards,
AYK

Task ID: CYF-1150

@sarawonesarawone added 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Tools The name of the module. labels Jul 27, 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 I think there is a lot left to do here

.name ("cat")
.description ("A JS clone for unix command cat")
.argument("<files...>","One or more files to reach and print")
.option("-n", "number all output lines")

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 work so far, have you implemented everything the readme asked for?

.name ("list command clone")
.description("List all files & folders within current folder")
.argument("[directory]","Directory to list",".")
.option("-1","list file line by 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.

Are you correctly handling the -1 option?

have you implemented everything the readme asked for?

program
.name("WC clone")
.description("Counting each words in a given file")
.argument("<files...>","one or more files to count the words")

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.

Thinking about arguments and options, have you implemented everything the readme asked for?


if (files.length>1)
{
printCounts({lineCount:totalLines,

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 is the reason for passing an object then destructuring in printCounts?

@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
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-ToolsThe name of the module.ReviewedVolunteer to add when completing a review with trainee action still to take.📅 Sprint 3Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@sarawone@LonMcGregor