Skip to content

Add support for avoiding execution if the script is sourced #597

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

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

DannyBen
Copy link
Member

cc #596, #594

@DannyBen
Copy link
Member Author

@meleu - is this aligned with our discussion?

@DannyBen DannyBen added this to the 1.2.8 milestone Dec 30, 2024
@meleu
Copy link
Collaborator

meleu commented Dec 30, 2024

Yep!

Tested here and it indeed generates the initialize/run calls inside the if block by default, and in the top-level scope when --env production.

I think now I'm ready to start writing a bashly tutorial! 🤓

By the way, I hope you have a wonderful 2025! 🎆

@DannyBen
Copy link
Member Author

By the way, I hope you have a wonderful 2025! 🎆

You too :)

@DannyBen DannyBen merged commit 59432f0 into master Dec 30, 2024
9 checks passed
@DannyBen DannyBen deleted the add/enable-sourcing branch December 30, 2024 20:25
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.

2 participants