File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { ManageIos } from './ManageIos';
33import { Analytics } from '../../analytics/AnalyticsManager' ;
44import { DynamicConfigContextFn } from '../../commandUtils/context/DynamicProjectConfigContextField' ;
55import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient' ;
6- import { selectPlatformAsync } from '../../platform' ;
6+ import { selectPlatformWithExitOptionAsync } from '../../platform' ;
77import { Actor } from '../../user/User' ;
88import { Client } from '../../vcs/vcs' ;
99import { CredentialsContextProjectInfo } from '../context' ;
@@ -20,7 +20,7 @@ export class SelectPlatform {
2020 ) { }
2121
2222 async runAsync ( ) : Promise < void > {
23- const platform = await selectPlatformAsync ( this . flagPlatform , true /* allowExit */ ) ;
23+ const platform = await selectPlatformWithExitOptionAsync ( this . flagPlatform ) ;
2424
2525 if ( platform === 'ios' ) {
2626 await new ManageIos ( this , process . cwd ( ) ) . runAsync ( ) ;
Original file line number Diff line number Diff line change @@ -48,7 +48,14 @@ export async function selectRequestedPlatformAsync(platform?: string): Promise<R
4848 return requestedPlatform ;
4949}
5050
51- export async function selectPlatformAsync (
51+ export async function selectPlatformWithExitOptionAsync ( platform ?: string ) : Promise < Platform > {
52+ return await selectPlatformInternalAsync ( platform , true ) ;
53+ }
54+ export async function selectPlatformAsync ( platform ?: string ) : Promise < Platform > {
55+ return await selectPlatformInternalAsync ( platform , false ) ;
56+ }
57+
58+ async function selectPlatformInternalAsync (
5259 platform ?: string ,
5360 allowExit ?: boolean
5461) : Promise < Platform > {
You can’t perform that action at this time.
0 commit comments