-
Notifications
You must be signed in to change notification settings - Fork 441
Migrate examples to Swift snippets #477
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
Conversation
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.
Cool! 🎉
I have rebased and tested this with a recent toolchain, |
My idea would be to change |
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.
Sounds good to me 👍
The CI failure looks unrelated, if I read this correctly? I could try again later. |
I think CI got confused because you mentioned another PR in the same comment that you triggered CI, so it tried to test this PR together with the mentioned PR. |
@swift-ci Please test |
This recently merged proposal will bring native support for running small scripts (snippets) in the context of the package directly via SPM (
swift run [snippet]
). Since the examples from this repo effectively serve the same purpose, this branch renames theExamples
folder toSnippets
to make them discoverable by SPM. Additionally, it adds a few minor tweaks (cleaning up the paths in theREADME.md
and using trailing closures in the syntax builder example).