Skip to content

Conversation

@Emilianouz
Copy link

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

Implementing common shell tools so that they behave like the real versions on a typical system: CAT, LS, WC. Node commander was installed to run in every directory.

@Emilianouz Emilianouz added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 3 Assigned during Sprint 3 of this module labels Nov 25, 2025
File doesn’t belong to this branch.
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good start on these tasks, I've left some comments for where it could be improved

Choose a reason for hiding this comment

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

Did you mean to make changes to this file? We try to keep pull requests specific to just the files in the feature we are changing - for this, everything within the sprint task directory.

process.exit(1);
}

//const path = argv[0];

Choose a reason for hiding this comment

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

We try to avoid comitting commented out code that is no longer needed

.map((line,index) => `${(index + 1).toString().padStart(6)}\t${line}`)
.forEach(line => console.log(line))

} else if (option.b){

Choose a reason for hiding this comment

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

Try to be careful of indentation and formatting - can you spot the inconsistency here? You could consider using a formatting tool to help.

Choose a reason for hiding this comment

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

Good concise solution

import {program} from "commander";
import { promises as fs } from "node:fs";
import process from "node:process";
import { glob } from "glob";

Choose a reason for hiding this comment

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

When I try to run this file, i get this error: Cannot find package 'glob' . Can you figure out why?

@LonMcGregor LonMcGregor 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 Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants