Skip to content

London | 26-SDC-July| Mariia Serhiienko | Sprint 4 | Implement shell tools in Python - #661

Open
Konvaly wants to merge 2 commits into
CodeYourFuture:mainfrom
Konvaly:implement-shell-tools-python-2
Open

London | 26-SDC-July| Mariia Serhiienko | Sprint 4 | Implement shell tools in Python #661
Konvaly wants to merge 2 commits into
CodeYourFuture:mainfrom
Konvaly:implement-shell-tools-python-2

Conversation

@Konvaly

@Konvaly Konvaly commented Aug 11, 2026

Copy link
Copy Markdown

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

Solved task "Implement shell tools in Python"
Task ID: CYF-1152

@Konvaly Konvaly added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 11, 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, I have some comments about the implementation

if line.strip("\n") == "":
sys.stdout.write(line)
else:
counter += 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.

There's some repeated code patterns here, can that be reduced?

import sys

parser = argparse.ArgumentParser(prog="ls", description="List directory contents")
parser.add_argument("-1", dest="one_per_line", action="store_true",

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 -1 argument used for?

@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 Aug 12, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants