chore(shorebird_cli): v1.6.46 (#3177)

This commit is contained in:
Felix Angelov
2025-06-17 10:50:33 -05:00
committed by GitHub
parent 4fd24fe578
commit 3633ccd882
5 changed files with 28 additions and 2 deletions
+4
View File
@@ -4,6 +4,10 @@
cspell:words pubspec erickzanardo xcframeworks Cupertino codesign codecov rkishan appbundle proto tlsv
-->
## 1.6.46 (June 17, 2025)
- ✨ Add new `shorebird create` command
## 1.6.45 (June 16, 2025)
- 🐦 Support for Flutter 3.32.4
@@ -25,6 +25,9 @@ class CreateCommand extends ShorebirdProxyCommand {
...results.rest,
]);
if (createExitCode != ExitCode.success.code) return createExitCode;
if (results.rest.contains('-h') || results.rest.contains('--help')) {
return createExitCode;
}
return runScoped(
() => runner!.run(['init']),
values: {
+1 -1
View File
@@ -1,2 +1,2 @@
// Generated code. Do not modify.
const packageVersion = '1.6.45';
const packageVersion = '1.6.46';
+1 -1
View File
@@ -1,6 +1,6 @@
name: shorebird_cli
description: Command-line tool to interact with Shorebird's services.
version: 1.6.45
version: 1.6.46
repository: https://github.com/shorebirdtech/shorebird
resolution: workspace
@@ -76,6 +76,25 @@ void main() {
verify(() => runner.run(['init'])).called(1);
});
group('when passing --help', () {
setUp(() {
when(() => argResults.rest).thenReturn(['--help']);
when(
() => process.stream('flutter', ['create', '--help']),
).thenAnswer((_) async => ExitCode.success.code);
});
test('only runs flutter create', () async {
await expectLater(
runWithOverrides(command.run),
completion(equals(ExitCode.success.code)),
);
verify(() => process.stream('flutter', ['create', '--help'])).called(1);
verifyNever(() => runner.run(any()));
});
});
group('when flutter create fails', () {
setUp(() {
when(