Skip to content

Add template selection to CLI - #7

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

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

Conversation

@Ochibueze474

Copy link
Copy Markdown
Contributor

This PR implements template selection as requested in issue #2.

  • Added display_templates() in templates.py to show a numbered list
  • Added select_template() to accept user input, validate it's a real number and within range, and return the chosen template name
  • Wired it into main.py so the tool now shows templates and prompts for a selection on run
  • Tested locally with valid input, out-of-range numbers, and non-numeric input, all handled correctly

I kept this scoped to selection and validation only, not connecting it to the generator yet, since generating the right files per template looks like it's covered separately in issue #3.
Let me know if you'd prefer it wired together here instead.

Fixes #2

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.

Add template selection

1 participant