Skip to content

Implement project generator - #6

Open
Ochibueze474 wants to merge 1 commit into
ForgeCoders:mainfrom
Ochibueze474:implement-project-generator
Open

Implement project generator#6
Ochibueze474 wants to merge 1 commit into
ForgeCoders:mainfrom
Ochibueze474:implement-project-generator

Conversation

@Ochibueze474

Copy link
Copy Markdown

This PR implements the core project generator requested in issue #1.

  • Added generator.py with create_project() function
  • Creates a new project folder using os.makedirs()
  • Generates starter files inside it: README.md and main.py
  • Handles existing directories safely with a try/except FileExistsError,
    printing a clear message instead of crashing
  • Tested locally: confirmed folder and files are created correctly, and
    running it again on an existing folder name shows the expected message
    instead of an error

Difficulty: Medium

Note: I commented on the issue before starting but hadn't heard back yet.
Went ahead and built this out, happy to adjust based on any feedback.

Fixes #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement project generator

1 participant