@@ -3,8 +3,6 @@ import { nspawn as spawn, getCLIPath, getSocialProviders } from 'amplify-codegen
33export function addEnvironment ( cwd : string , settings : { envName : string ; numLayers ?: number } ) : Promise < void > {
44 return new Promise ( ( resolve , reject ) => {
55 const chain = spawn ( getCLIPath ( ) , [ 'env' , 'add' ] , { cwd, stripColors : true } )
6- . wait ( 'Do you want to use an existing environment?' )
7- . sendLine ( 'n' )
86 . wait ( 'Enter a name for the environment' )
97 . sendLine ( settings . envName )
108 . wait ( 'Select the authentication method you want to use:' )
@@ -29,8 +27,6 @@ export function addEnvironment(cwd: string, settings: { envName: string; numLaye
2927export function addEnvironmentWithImportedAuth ( cwd : string , settings : { envName : string ; currentEnvName : string } ) : Promise < void > {
3028 return new Promise ( ( resolve , reject ) => {
3129 spawn ( getCLIPath ( ) , [ 'env' , 'add' ] , { cwd, stripColors : true } )
32- . wait ( 'Do you want to use an existing environment?' )
33- . sendConfirmNo ( )
3430 . wait ( 'Enter a name for the environment' )
3531 . sendLine ( settings . envName )
3632 . wait ( 'Select the authentication method you want to use:' )
@@ -143,8 +139,6 @@ export function addEnvironmentHostedUI(cwd: string, settings: { envName: string
143139 const { FACEBOOK_APP_ID , FACEBOOK_APP_SECRET , GOOGLE_APP_ID , GOOGLE_APP_SECRET , AMAZON_APP_ID , AMAZON_APP_SECRET } = getSocialProviders ( ) ;
144140 return new Promise ( ( resolve , reject ) => {
145141 spawn ( getCLIPath ( ) , [ 'env' , 'add' ] , { cwd, stripColors : true } )
146- . wait ( 'Do you want to use an existing environment?' )
147- . sendLine ( 'n' )
148142 . wait ( 'Enter a name for the environment' )
149143 . sendLine ( settings . envName )
150144 . wait ( 'Select the authentication method you want to use:' )
0 commit comments