-
Notifications
You must be signed in to change notification settings - Fork 143
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
fix(shorebird_cli): always respect build-name and build-number args #2302
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
/// Provides the [containsAnyOf] method to all [Iterable]s. | ||
extension ContainsAnyOf<T> on Iterable<T> { | ||
/// Returns `true` if any of the elements in [elements] are in this iterable. | ||
bool containsAnyOf(Iterable<T> elements) => elements.any(contains); |
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.
What’s the benefit of this extension? Seems like it’s a one liner either way
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.
It looks a bit nicer with list literals:
argResults.options.containsAnyOf([a,b]);
instead of
[a,b].any((e) => argResults.options.contains(e));
Mostly just a minor readability improvement, happy to remove if you feel strongly.
Description
We were previously only using
build-number
for Flutter module releases. Because this argument is respected for allflutter build
operations, we should support it for all of them if we support it at all.Fixes #2301
Type of Change