chore(shorebird_cli): hide ios commands (#623)

This commit is contained in:
Bryan Oltman
2023-06-09 16:35:08 -04:00
committed by GitHub
parent e3376cda51
commit 12bb74cdc2
4 changed files with 16 additions and 2 deletions
@@ -59,7 +59,10 @@ class PatchIosCommand extends ShorebirdCommand
}
@override
String get name => 'ios-preview';
bool get hidden => true;
@override
String get name => 'ios';
@override
String get description =>
@@ -39,6 +39,9 @@ class ReleaseIosCommand extends ShorebirdCommand
final IpaReader _ipaReader;
@override
bool get hidden => true;
@override
String get description => '''
Builds and submits your iOS app to Shorebird.
@@ -47,7 +50,7 @@ make smaller updates to your app.
''';
@override
String get name => 'ios-preview';
String get name => 'ios';
@override
Future<int> run() async {
@@ -217,6 +217,10 @@ flutter:
expect(command.description, isNotEmpty);
});
test('is hidden', () {
expect(command.hidden, isTrue);
});
test('throws no user error when user is not logged in', () async {
when(() => auth.isAuthenticated).thenReturn(false);
final tempDir = setUpTempDir();
@@ -203,6 +203,10 @@ flutter:
expect(command.description, isNotEmpty);
});
test('is hidden', () {
expect(command.hidden, isTrue);
});
test('throws config error when shorebird is not initialized', () async {
final tempDir = Directory.systemTemp.createTempSync();
final exitCode = await IOOverrides.runZoned(