-
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
feat(shorebird_cli): add channel support to patch
and preview
commands
#1340
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1340 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 180 180
Lines 4676 4724 +48
=========================================
+ Hits 4676 4724 +48
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
LGTM, mostly just some naming/readability nits
for (final file in Directory(outputPath).listSync(recursive: true)) { | ||
if (file is File) { | ||
await encoder.addFile( | ||
file, | ||
file.path.replaceFirst('$outputPath/', ''), | ||
); | ||
} | ||
} |
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.
Not necessary, but a (maybe) more readable way of writing this:
Directory(outputPath).listSync(recursive: true))
.whereType<File>()
.forEach((file) async =>
await encoder.addFile(
file,
file.path.replaceFirst('$outputPath/', ''),
),
);
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.
I just didn't like the having to iterate through the list twice
Description
patch
andpreview
commands (part of feat: support of partial rollouts of patches #783)Type of Change