-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ Feat: add ability to use example files #12
Conversation
Thanks for the contribution! I haven't looked at the code yet but upon reading the description I wonder if it's worth putting the example generation behind a flag. I would probably replace the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there! I finally got a chance to dig into these changes and'm liking where things are headed. I left a few comments, the emojis I use are explained in this guide but aren't strictly necessary for understanding the comments. I just find them helpful as an organizational tool.
Co-authored-by: Robert Attard <robert.attard@mail.mcgill.ca>
TODO: configure flag in `gladvent.gleam`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coming along nicely! left some more notes
Co-authored-by: Robert Attard <robert.attard@mail.mcgill.ca>
Thanks a bunch! merged |
My puzzle workflow is usually the following:
With
gladvent
, steps 5 and 7 always involve deleting my puzzle input from the input file, then copying it back.With this PR:
new
command creates a{day}.example.txt
file as wellrun
command,--use-example
. If it is present, the runner will pass the example txt as inputIf I missed anything, please reach out and I'll gladly update my PR.