Skip to content

Glasgow | 26-SDC-JUL | Mirabelle Morah | Sprint 3 | Implement Shell Tools - #620

Open
mirabellemorah wants to merge 6 commits into
CodeYourFuture:mainfrom
mirabellemorah:implement-shell-tools
Open

Glasgow | 26-SDC-JUL | Mirabelle Morah | Sprint 3 | Implement Shell Tools#620
mirabellemorah wants to merge 6 commits into
CodeYourFuture:mainfrom
mirabellemorah:implement-shell-tools

Conversation

@mirabellemorah

@mirabellemorah mirabellemorah commented Jul 28, 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

Used node to implement shell command lines

Task ID: CYF-1150

@mirabellemorah mirabellemorah 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. labels Jul 28, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@mirabellemorah mirabellemorah added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@mirabellemorah mirabellemorah changed the title Glasgow | 26-SDC-JUL | Mirabelle Morah | 3 | Implement Shell Tools Glasgow | 26-SDC-JUL | Mirabelle Morah | Sprint 3 | Implement Shell Tools Jul 28, 2026
@mirabellemorah mirabellemorah added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 28, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 4, 2026

@LonMcGregor LonMcGregor 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.

Comment thread implement-shell-tools/cat/cat.js Outdated
Comment thread implement-shell-tools/ls/ls.js Outdated
import { promises as fs } from "node:fs";
import process from "node:process";

const argv = process.argv.slice(2);

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.

Is there a reason you used commander in the cat example, but not here

Comment thread implement-shell-tools/ls/ls.js Outdated
}
}

const showOnePerLine = flags.includes("-1");

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 showOnePerLine const 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.

Now showOneLine (line 13), when true it loops through all the files and prints them on a single line if -1 flag is passed (line 39-45), if not they'd print as it often does in multiple columns in vs code

Comment thread implement-shell-tools/wc/wc.js Outdated
import { program } from "commander";
import { promises as fs } from "node:fs";

const argv = process.argv.slice(2);

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.

You import the commander program api, but don't use it. Is there a reason for that?

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.

This has been corrected now to include arguments and options

@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. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 4, 2026
@mirabellemorah mirabellemorah added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 9, 2026
@mirabellemorah mirabellemorah removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 9, 2026
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