chore(shorebird_cli): hide ios commands (#623)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user