Add an exercise generator to bootstrap directory structure for new exercises #112
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Because
I'm working on a series of new exercises in this repo, and due to the number of files and folders, there's an inconvenient amount of work for getting a new exercise setup. This will save me a lot of time while building the new exercises.
Partially inspired by the javascript-exercises repo, which has a generator script of its own for the same purposes.
This PR
ExerciseGenerator
class with tests. This class's#generate
method will create the directory structure and boilerplate files for a new exercise.bin/generate_exercise
, which forwards command line args toExerciseGenerator#generate
. This makes running the generator more ergonomic.README
to include documentation for how to use the generator script. (This could potentially be moved to a localCONTRIBUTING.md
for this repo?)Issue
Closes #XXXXX
Additional Information
Pull Request Requirements
location of change: brief description of change
format, e.g.Data types exercise: Update spec files
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
sectionsolutions
branch, I have created another PR (and linked it to this PR).