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
Allow use of ICakeContext in WithCriteria #512
Comments
Sounds like a reasonable addition. Will make the task API more consistent as well 👍 |
I am looking into this, and was wondering how I should add it to the existing |
@ErikSchierboom I don't have the source code in front of me but will get back to you later tonight. 👍 |
@ErikSchierboom I would prefer if we changed We could also make the |
Merged via #663. |
Overload
CakeTaskBuilder.WithCriteria
to acceptFunc<ICakeContext,bool>
.I'm factoring out some common behaviors in my scripts into reusable tasks, but not having the context available in
WithCriteria
is causing some friction.Anyone have a reason that context shouldn't be allowed there?
The text was updated successfully, but these errors were encountered: